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