$actions) { foreach ($actions as $action) { $law = $this->law; $right = new Right(); $right = new Right(); $right->setSource($this); $right->setLaw($law); $right->setReciever($this); $right->setLayer($layer); $right->setActionType($action); $rights = $law->getRights(); $rights->add($right); } } } public function __construct() { parent::__construct(); $this->setStandartRights(); } /** * {@inheritdoc} * * @see \Infinito\Entity\Source\Complex\UserSourceInterface::hasPersonIdentitySource() */ public function hasPersonIdentitySource(): bool { return isset($this->personIdentitySource); } }