/** * Inserts the value at $index * @param mixed $index * @param \DevStub\KubernetesAPIClient\Entity\v1beta1\ContainerManifest $value * * @return \DevStub\KubernetesAPIClient\Entity\v1beta1\ContainerManifest */ public function insert($value = self::UNIQUE_DEFAULT, $index = null) { if ($value === self::UNIQUE_DEFAULT) { $value = new ContainerManifest(); $value->_setEntityCallback([$this, __METHOD__]); } else { $this->_data[$index] = $value; } return $value; }
/** * @param \DevStub\KubernetesAPIClient\Entity\v1beta1\ContainerManifest $manifest * * @return \DevStub\KubernetesAPIClient\Entity\v1beta1\ContainerManifest */ public function setManifest($manifest = self::UNIQUE_DEFAULT) { if ($manifest === self::UNIQUE_DEFAULT) { $manifest = new ContainerManifest(); $manifest->_setEntityCallback([$this, __METHOD__]); } $this->manifest = $manifest; return $this->manifest; }