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/bad601c13c3149b657a9daef8a886168 to your computer and use it in GitHub Desktop.

Select an option

Save ismail1432/bad601c13c3149b657a9daef8a886168 to your computer and use it in GitHub Desktop.
<?php
namespace App\Domain;
final class CreateAUserOutput
{
private string $id;
private string $name;
private int $age;
public function __construct(string $id, string $name, int $age)
{
$this->id = $id;
$this->name = $name;
$this->age = $age;
}
public function getId(): string
{
return $this->id;
}
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