src/Manipulators/Watermark.php
public function getDimension(Image $image, $field)
    {
        if ($this->{$field}) {
            return (new Dimension($image, $this->getDpr()))->get($this->{$field});
        }
    }
public function getDimension(Image $image, $field)
    {
        if ($this->{$field}) {
            return (new Dimension($image, $this->getDpr()))->get($this->{$field});
        }
    }
public function getDimension ( Image $ image , $ field ) { if ( $ this -> { $ field } ) { return ( new Dimension ( $ image , $ this -> getDpr ( ) ) ) -> get ( $ this -> { $ field } ) ; } }
Get a dimension.
@param  Image       $image The source image.
@param  string      $field The requested field.
@return double|null The dimension.
Get a dimension .