for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Src\UseCases\Domain\Users;
class UserDto
{
private $identity;
private $state;
public function __construct(Identity $identity, State $state)
$this->identity = $identity;
$this->state = $state;
}
public function toArray()
return array_merge(
$this->identity->toArray(),
$this->state->toArray()
);