id; } /** * Get string representation. * * @return string Returns the json_encode of this object * * @since 1.0.0 */ public function __toString() : string { return (string) \json_encode($this->toArray()); } /** * {@inheritdoc} */ public function toArray() : array { return [ 'id' => $this->id, 'name' => $this->name, 'description' => $this->description, 'permissions' => $this->permissions, 'members' => $this->members, ]; } /** * Json serialize. * * @return array * * @since 1.0.0 */ /** * {@inheritdoc} */ public function jsonSerialize() : mixed { return $this->toArray(); } }