Skip to content

Instantly share code, notes, and snippets.

@ismail1432
Last active November 2, 2021 23:42
Show Gist options
  • Select an option

  • Save ismail1432/981c174821101ea7acb2b0b35dc38c55 to your computer and use it in GitHub Desktop.

Select an option

Save ismail1432/981c174821101ea7acb2b0b35dc38c55 to your computer and use it in GitHub Desktop.
<?php
namespace App\Domain;
final class CreateAUserInput
{
private string $name;
private int $age;
public function __construct(string $name, int $age)
{
$this->name = $name;
$this->age = $age;
}
public function getName(): string
{
return $this->name;
}
public function getAge(): int
{
return $this->age;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment