src/Net/Connectivity.php
protected function validateMethod( $method ){
		if( !is_int( $method ) )
			throw new \InvalidArgumentException( 'Method must be integer' );
		if( !in_array( $method, array( self::METHOD_SOCKET, self::METHOD_PING ) ) )
			throw new \RangeException( 'Invalid method' );
		return $method;
	}
protected function validateMethod( $method ){
		if( !is_int( $method ) )
			throw new \InvalidArgumentException( 'Method must be integer' );
		if( !in_array( $method, array( self::METHOD_SOCKET, self::METHOD_PING ) ) )
			throw new \RangeException( 'Invalid method' );
		return $method;
	}
protected function validateMethod ( $ method ) { if ( ! is_int ( $ method ) ) throw new \ InvalidArgumentException ( 'Method must be integer' ) ; if ( ! in_array ( $ method , array ( self :: METHOD_SOCKET , self :: METHOD_PING ) ) ) throw new \ RangeException ( 'Invalid method' ) ; return $ method ; }
Validate given method.
@acess		protected
@param		integer		Method to validate
@return		integer		Method after validation
Validate given method .