__serialize(); } /** * Magic method to convert the object to a string. * * This method is automatically called when the object is treated as a string. * It calls the toString method to provide a string representation of the object. * * @return string The JSON-encoded string representation of the object. */ public function __toString(): string { return $this->toString(); } /** * Generates a CLI command array from the object. * * This abstract method must be implemented by subclasses to provide a specific * CLI command representation of the object. The CLI command is returned as an * array, where each element represents a part of the command. * * @return array The CLI command array representing the object. */ abstract public function asCliCommand(): array; }