/** * Run a content processor * * @param $name * * @throws \Codex\Exception\CodexException */ protected function runProcessor($name) { if ($this->processed->has($name)) { return; } $this->processed->set($name, $this->getProcessors()->run($name, $this)); }
/** * addStyle method * * @param $name * @param $value * @param array $depends * @param array $attr * * @return ThemeHelper */ public function addStyle($name, $value, array $depends = [], array $attr = []) { $this->styles->set($name, compact('name', 'value', 'depends', 'attr')); return $this; }
/** * Offset to set * * @link http://php.net/manual/en/arrayaccess.offsetset.php * * @param mixed $offset <p> * The offset to assign the value to. * </p> * @param mixed $value <p> * The value to set. * </p> * * @return void * @since 5.0.0 */ public function offsetSet($offset, $value) { $this->items->set($offset, $value); }