PHP Class Jackalope\Query\QOM\ComparisonConstraint

Inheritance: implements PHPCR\Query\QOM\ComparisonInterface
Show file Open project: jackalope/jackalope

Protected Properties

Property Type Description
$operand1 PHPCR\Query\QOM\DynamicOperandInterface
$operand2 PHPCR\Query\QOM\StaticOperandInterface
$operator string

Public Methods

Method Description
__construct ( PHPCR\Query\QOM\DynamicOperandInterface $operand1, string $operator, PHPCR\Query\QOM\StaticOperandInterface $operand2 ) Create a new comparison constraint
getConstraints ( ) : array Gets all constraints including itself
getOperand1 ( ) {@inheritDoc}
getOperand2 ( ) {@inheritDoc}
getOperator ( ) {@inheritDoc}

Method Details

__construct() public method

Create a new comparison constraint
public __construct ( PHPCR\Query\QOM\DynamicOperandInterface $operand1, string $operator, PHPCR\Query\QOM\StaticOperandInterface $operand2 )
$operand1 PHPCR\Query\QOM\DynamicOperandInterface
$operator string
$operand2 PHPCR\Query\QOM\StaticOperandInterface

getConstraints() public method

Gets all constraints including itself
public getConstraints ( ) : array
return array the constraints

getOperand1() public method

{@inheritDoc}
public getOperand1 ( )

getOperand2() public method

{@inheritDoc}
public getOperand2 ( )

getOperator() public method

{@inheritDoc}
public getOperator ( )

Property Details

$operand1 protected property

protected DynamicOperandInterface,PHPCR\Query\QOM $operand1
return PHPCR\Query\QOM\DynamicOperandInterface

$operand2 protected property

protected StaticOperandInterface,PHPCR\Query\QOM $operand2
return PHPCR\Query\QOM\StaticOperandInterface

$operator protected property

protected string $operator
return string