Page MenuHomestyx hydra

FilterExpression.php
No OneTemporary

FilterExpression.php

<?php
namespace RESTful;
class FilterExpression
{
public $field,
$op,
$val,
$not_op;
public function __construct($field, $op, $val, $not_op = null)
{
$this->field = $field;
$this->op = $op;
$this->val = $val;
$this->not_op = $not_op;
}
public function not()
{
if (null === $this->not_op) {
throw new \LogicException(sprintf('Filter cannot be inverted'));
}
$temp = $this->op;
$this->op = $this->not_op;
$this->not_op = $temp;
return $this;
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, Feb 24, 9:20 PM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
808385
Default Alt Text
FilterExpression.php (593 B)

Event Timeline