protected function createJson() { $element = parent::createJson(); if ($this->getProperty('volume_type') instanceof VolumeType) { $element->volume->volume_type = $this->volume_type->name(); } return $element; }
protected function createJson() { $createJson = parent::createJson(); return $createJson->{self::$json_name}; }
/** * This method is inherited. The inherited method has protected scope * but we are widening the scope to public so this method may be called * from other classes such as {@see OpenCloud\Networking\Service}. */ public function createJson() { return parent::createJson(); }