Storm\Drivers\Base\Object\Criterion::__construct PHP Method

__construct() public method

public __construct ( $EntityType )
    public function __construct($EntityType)
    {
        $this->EntityType = $EntityType;
        $this->PredicateExpressions = [];
        $this->OrderByExpressionsAscendingMap = new \SplObjectStorage();
        $this->GroupByExpressions = [];
        $this->RangeOffset = 0;
        $this->RangeAmount = null;
    }

Usage Example

Example #1
0
 public function __construct(Object\PropertyData $PropertyData)
 {
     parent::__construct($PropertyData->GetEntityType());
     foreach ($PropertyData as $PropertyIdentifier => $Value) {
         $Property = $PropertyData->GetProperty($PropertyIdentifier);
         $this->AddPredicate(Expression::BinaryOperation(Expression::Property($Property), Operators\Binary::Identity, Expression::Constant($Value)));
     }
 }
All Usage Examples Of Storm\Drivers\Base\Object\Criterion::__construct