Pimcore\Model\Asset\Image::getFormat PHP Метод

getFormat() публичный Метод

public getFormat ( ) : string
Результат string
    public function getFormat()
    {
        if ($this->getWidth() > $this->getHeight()) {
            return "landscape";
        } elseif ($this->getWidth() == $this->getHeight()) {
            return "square";
        } elseif ($this->getHeight() > $this->getWidth()) {
            return "portrait";
        }
        return "unknown";
    }