/** * @param callable $callable * @return $this */ public function then($callable) { call_user_func(Compiler::getCallableObject($callable)); return $this; }
public function sort($callable) { $copy = $this->container; uasort($copy, Compiler::getCallableObject($callable, 2)); return new self($copy); }
public function sort($callable) { uasort($this->container, Compiler::getCallableObject($callable, 2)); return $this; }
/** * @param callable $callable * @return $this */ public function otherwise($callable) { call_user_func(Compiler::getCallableObject($callable, 0)); return $this; }
/** * @param callable $callable * @return $this */ public function then($callable) { call_user_func(Compiler::getCallableObject($callable, 1, false), $this->get()); return $this; }