Neos\Media\Domain\Model\ThumbnailConfiguration::getWidth PHP Method

getWidth() public method

public getWidth ( ) : integer
return integer
    public function getWidth()
    {
        if ($this->width !== null) {
            return $this->width;
        }
        if ($this->behaviourFlag === '1.2') {
            // @deprecated since 2.0, simulate the behaviour of 1.2
            if ($this->height === null && $this->isCroppingAllowed() && $this->getMaximumWidth() !== null && $this->getMaximumHeight() !== null) {
                $this->logDeprecation();
                return $this->getMaximumWidth();
            }
        }
        return null;
    }