* @copyright Meritoo */ class SimpleToString { /** * Identifier * * @var string */ private $id; /** * Class constructor * * @param string $id Identifier */ public function __construct($id) { $this->id = $id; } /** * Returns representation of object as string * * @return string */ public function __toString() { return sprintf('Instance with ID: %s', $this->id); } }