src/Image/Size.php
private function getConstraint(Closure $callback = null)
    {
        $constraint = new Constraint(clone $this);

        if ($callback !== null) {
            $callback($constraint);
        }

        return $constraint;
    }
private function getConstraint(Closure $callback = null)
    {
        $constraint = new Constraint(clone $this);

        if ($callback !== null) {
            $callback($constraint);
        }

        return $constraint;
    }
private function getConstraint ( Closure $ callback = null ) { $ constraint = new Constraint ( clone $ this ) ; if ( $ callback !== null ) { $ callback ( $ constraint ) ; } return $ constraint ; }
Runs constraints on current size

@param  Closure|null $callback

@return \Hail\Image\Constraint
Runs constraints on current size