code: public function buildPermission(int $id, string $title, ?string $description, bool $active, \DateTimeImmutable $created, array $roles): Permission 
      {
          return new Permission($id, $title, $description, $active, $created, $roles);
      }
docs: note roles array is validated in Permission constructor