getMask(); } public function getTool(): Tool { return $this->tool; } public function setTool(Tool $tool): self { $this->tool = $tool; return $this; } /** * @return string */ public function getRole() { return $this->role; } public function setRole(string $role): self { $this->role = $role; return $this; } /** * @return int */ public function getMask() { return $this->mask; } public function setMask(int $mask): self { $this->mask = $mask; return $this; } public function getId(): int { return $this->id; } public static function getDefaultRoles(): array { return [ 'Students' => 'ROLE_STUDENT', 'Teachers' => 'ROLE_TEACHER', ]; } public static function getMaskList(): array { $readerMask = ResourceNodeVoter::getReaderMask(); $editorMask = ResourceNodeVoter::getEditorMask(); return [ 'Can read' => $readerMask, 'Can edit' => $editorMask, ]; } }