id = $id; $this->description = $description; } /** * @return static[] */ public static function scopes() { return [ 'api' => new Scope('api', _('Gewährt vollständigen Lese-/Schreibzugriff auf die API.')), ]; } /** * @return array */ public function toArray() { return [ 'id' => $this->id, 'description' => $this->description, ]; } /** * @param int $options * * @return string */ public function toJson($options = 0) { return json_encode($this->toArray(), $options); } }