/** * Constructor * * @param string $operator */ public function __construct($operator = null, $groupName = null) { if ($operator == null) { $operator = Fetcher::OPERATOR_AND; } parent::__construct($operator, $groupName); $this->operations = array(); }
/** * Constructor * * @param string $operator * @param string $columnName * @param string $value * @param string $groupName */ public function __construct($operator = null, $columnName = null, $value = null, $groupName = null) { if ($operator == null) { $operator = Fetcher::TYPE_EQ; } parent::__construct($operator, $groupName); $this->columnName = $columnName; $this->value = $value; }