public function __construct(array $userGroups, $path, $userId = null) { $this->userGroups = $userGroups; $this->path = $path; $this->userId = $userId; }