This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Curry | |
{ | |
protected $callback, $bind; | |
protected function __construct($callback, Array $bind) | |
{ | |
if(!is_callable($callback)) throw new InvalidArgumentException('$callback must be callable'); | |
list($this->callback, $this->bind) = func_get_args(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Curry | |
{ | |
protected $callback, $bind; | |
protected function __construct($callback, Array $bind) | |
{ | |
if(!is_callable($callback)) throw new InvalidArgumentException('$callback must be callable'); | |
list($this->callback, $this->bind) = func_get_args(); | |
} |