public function integer($values, string $currency = null): int
    {
        [$className, $value] = $this->classAndValue($values, $currency, false);

        return (new $className)->integer($value);
    }
public function integer($values, string $currency = null): int
    {
        [$className, $value] = $this->classAndValue($values, $currency, false);

        return (new $className)->integer($value);
    }
public function integer ( $ values , string $ currency = null ) : int { [ $ className , $ value ] = $ this -> classAndValue ( $ values , $ currency , false ) ; return ( new $ className ) -> integer ( $ value ) ; }
Convert value to integer.

@param  string|array $values
@param  string|null $currency
@return int
Convert value to integer .