/** * BaseReport constructor. * * @param BaseReportBuilder $builder * * @throws \Assert\AssertionFailedException */ public function __construct(BaseReportBuilder $builder) { $id = $builder->getId(); Assertion::uuid($id); $this->id = $id; $name = $builder->getName(); Assertion::string($name); Assertion::notEmpty($name); $this->name = $name; $description = $builder->getDescription(); Assertion::nullOrString($description); $this->setDescription($description); $gitLab = $builder->getGitLab(); Assertion::isInstanceOf($gitLab, GitLab::class); $this->gitLab = $gitLab; }