/** * @param array $perms * @return $this * @throws WrongArgumentException */ public function setPermissions($perms) { Assert::isArray($perms); $this->permissions = $perms; return $this; }