src/Manipulators/Contrast.php
public function getContrast()
    {
        if (!preg_match('/^-*[0-9]+$/', $this->con)) {
            return;
        }

        if ($this->con < -100 or $this->con > 100) {
            return;
        }

        return (int) $this->con;
    }
public function getContrast()
    {
        if (!preg_match('/^-*[0-9]+$/', $this->con)) {
            return;
        }

        if ($this->con < -100 or $this->con > 100) {
            return;
        }

        return (int) $this->con;
    }
public function getContrast ( ) { if ( ! preg_match ( '/^-*[0-9]+$/' , $ this -> con ) ) { return ; } if ( $ this -> con < - 100 or $ this -> con > 100 ) { return ; } return ( int ) $ this -> con ; }
Resolve contrast amount.
@return string The resolved contrast amount.
Resolve contrast amount .