Exemple #1
0
 function __construct($left, $right = self::ASC)
 {
     if (!in_array($right, array(self::ASC, self::DESC))) {
         throw new \InvalidArgumentException("Sort Direction {$right} is\\\n                not supported, use Order::ASC or ORDER::DESC instead.");
     }
     parent::__construct($left, $right);
 }