Lines Matching refs:helpers
31 * @var array array of helpers
33 protected $helpers = [];
59 * @param array $helpers array of name=>$value helpers
60 * @throws \InvalidArgumentException when $helpers is not an array
63 public function __construct($helpers = null)
70 if ($helpers != null) {
71 if (!is_array($helpers) && !$helpers instanceof Traversable) {
73 'HelperCollection constructor expects an array of helpers'
76 foreach ($helpers as $name => $helper) {
83 * Add a new helper to helpers
96 $this->helpers[$name] = $helper;
108 return array_key_exists($name, $this->helpers);
124 return $this->helpers[$name];
141 * Add a new helper to helpers __magic__ method :)
162 unset($this->helpers[$name]);
177 unset($this->helpers[$name]);
183 * Removes all helpers from this collection
189 $this->helpers = [];
199 return empty($this->helpers);