protected function getSize($value)
    {
        if (is_numeric($value)) {
            return $value;
        }

        if (is_array($value) || $value instanceof Countable) {
            return count($value);
        }

        return mb_strlen($value);
    }
protected function getSize($value)
    {
        if (is_numeric($value)) {
            return $value;
        }

        if (is_array($value) || $value instanceof Countable) {
            return count($value);
        }

        return mb_strlen($value);
    }
protected function getSize ( $ value ) { if ( is_numeric ( $ value ) ) { return $ value ; } if ( is_array ( $ value ) || $ value instanceof Countable ) { return count ( $ value ) ; } return mb_strlen ( $ value ) ; }
Try to guess the size of a parameter.

@param mixed $value

@return int
Try to guess the size of a parameter .