for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace LauLamanApps\IzettleApi\API\Purchase;
final class User
{
private $id;
private $displayName;
public function __construct(int $id, string $displayName)
$this->id = $id;
$this->displayName = $displayName;
}
public function getId(): int
return $this->id;
public function getDisplayName(): string
return $this->displayName;
public function __toString(): string
return $this->getDisplayName();