Example #1
0
function constx($constant)
{
    $predicates = new ResourceComputations(new ResourcePredicates(new ObjectComputations(new ObjectPredicates(new ArrayComputations(new ArrayPredicates(new StringComputations(new StringPredicates(new NumberComputations(new NumberPredicates(new BooleanComputations(new BooleanPredicates(new Operators()))))))))))));
    $predicates->setSymbol("__?__");
    $predicates->setOperand("__?__", $constant);
    return $predicates;
}
Example #2
0
function variable($symbol)
{
    $predicates = new ResourceComputations(new ResourcePredicates(new ObjectComputations(new ObjectPredicates(new ArrayComputations(new ArrayPredicates(new StringComputations(new StringPredicates(new NumberComputations(new NumberPredicates(new BooleanComputations(new BooleanPredicates(new Operators()))))))))))));
    $predicates->setSymbol($symbol);
    return $predicates;
}
Example #3
0
function resourcex($symbol)
{
    $predicates = new ResourceComputations(new ResourcePredicates(new Operators()));
    $predicates->setSymbol($symbol);
    return $predicates;
}