Ejemplo n.º 1
0
 function let(ProjectId $projectId)
 {
     $projectId->id()->willReturn('project-id');
     $this->beConstructedWith($projectId);
 }
Ejemplo n.º 2
0
 public function __construct(ProjectId $projectId)
 {
     parent::__construct(sprintf('Project with id "%s" already exists', $projectId->id()));
 }
Ejemplo n.º 3
0
 function let(ProjectId $projectId, ProjectName $projectName, Slug $projectSlug, OrganizationId $organizationId)
 {
     $projectId->id()->willReturn('project-id');
     $this->beConstructedWith($projectId, $projectName, $projectSlug, $organizationId);
 }
Ejemplo n.º 4
0
 public function projectOfId(ProjectId $id)
 {
     return $this->find($id->id());
 }