roleScopes = new ArrayCollection(); } public function addRoleScope(RoleScope $roleScope): self { $this->roleScopes->add($roleScope); return $this; } /** * @return int */ public function getId(): ?int { return $this->id; } public function getName(): array { return $this->name; } public function getRoleScopes(): Collection { return $this->roleScopes; } /** * @param $name * * @return $this */ public function setName(array $name): self { $this->name = $name; return $this; } }