/** * Get the image type object * * @return Type\TypeInterface */ public function type() { if (null === $this->type) { $this->type = new Type\Svg($this); } if (null === $this->type->getImage()) { $this->type->setImage($this); } return $this->type; }