src/PayloadBuilders/ContentTypeValidation.php
function assetImageDimensions($height = null, $width = null) {
        $imageDimensions = [];
        if ($height) $imageDimensions['height'] = $height;
        if ($width) $imageDimensions['width'] = $width;
        if (count($imageDimensions)) $this->data['assetImageDimensions'] = $imageDimensions;
        return $this;
    }
function assetImageDimensions($height = null, $width = null) {
        $imageDimensions = [];
        if ($height) $imageDimensions['height'] = $height;
        if ($width) $imageDimensions['width'] = $width;
        if (count($imageDimensions)) $this->data['assetImageDimensions'] = $imageDimensions;
        return $this;
    }
function assetImageDimensions ( $ height = null , $ width = null ) { $ imageDimensions = [ ] ; if ( $ height ) $ imageDimensions [ 'height' ] = $ height ; if ( $ width ) $ imageDimensions [ 'width' ] = $ width ; if ( count ( $ imageDimensions ) ) $ this -> data [ 'assetImageDimensions' ] = $ imageDimensions ; return $ this ; }
Validates that the dimensions of an image are within a range.
@param null $height
@param null $width
@return $this
Validates that the dimensions of an image are within a range .