public static function validate($data)
    {
        if (count(array_intersect_key(array_flip(static::$requiredParams), $data)) === count(static::$requiredParams)) {
            return true;
        }

        throw new InvalidArgumentException();
    }
public static function validate($data)
    {
        if (count(array_intersect_key(array_flip(static::$requiredParams), $data)) === count(static::$requiredParams)) {
            return true;
        }

        throw new InvalidArgumentException();
    }
public static function validate ( $ data ) { if ( count ( array_intersect_key ( array_flip ( static :: $ requiredParams ) , $ data ) ) === count ( static :: $ requiredParams ) ) { return true ; } throw new InvalidArgumentException ( ) ; }
Validate input data

@param array $data

@return bool

@throws InvalidArgumentException
Validate input data