protected function parseConditionOptions( $options ) {
		$type = $options[0];
		$arguments = array_values( array_slice( $options, 1 ) );

		if ( $this->isNegatedCondition( $type ) ) {
			return $this->parseNegatedCondition( $type, $arguments );
		}

		if ( ! $this->conditionTypeRegistered( $type ) ) {
			if ( is_callable( $type ) ) {
				return ['type' => 'custom', 'arguments' => $options];
			}

			throw new ConfigurationException( 'Unknown condition type specified: ' . $type );
		}

		return ['type' => $type, 'arguments' => $arguments ];
	}
protected function parseConditionOptions( $options ) {
		$type = $options[0];
		$arguments = array_values( array_slice( $options, 1 ) );

		if ( $this->isNegatedCondition( $type ) ) {
			return $this->parseNegatedCondition( $type, $arguments );
		}

		if ( ! $this->conditionTypeRegistered( $type ) ) {
			if ( is_callable( $type ) ) {
				return ['type' => 'custom', 'arguments' => $options];
			}

			throw new ConfigurationException( 'Unknown condition type specified: ' . $type );
		}

		return ['type' => $type, 'arguments' => $arguments ];
	}
protected function parseConditionOptions ( $ options ) { $ type = $ options [ 0 ] ; $ arguments = array_values ( array_slice ( $ options , 1 ) ) ; if ( $ this -> isNegatedCondition ( $ type ) ) { return $ this -> parseNegatedCondition ( $ type , $ arguments ) ; } if ( ! $ this -> conditionTypeRegistered ( $ type ) ) { if ( is_callable ( $ type ) ) { return [ 'type' => 'custom' , 'arguments' => $ options ] ; } throw new ConfigurationException ( 'Unknown condition type specified: ' . $ type ) ; } return [ 'type' => $ type , 'arguments' => $ arguments ] ; }
Parse the condition type and its arguments from an options array.

@param  array $options
@return array
Parse the condition type and its arguments from an options array .