name = (string) $name; $this->roles = new ArrayCollection(); } /** * Get the permission identifier * * @return int */ public function getId() { return $this->id; } /** * Get the permission name * * @return string */ public function getName() { return $this->name; } /** * {@inheritDoc} */ public function __toString() { return $this->getName(); } }