public function __construct($callable) { if (!is_callable($callable)) { throw new InvalidArgumentException('Argument is not callable!'); } $this->callable = $callable; }