/** * Gets the array of implements for this mixin * @var array */ protected static function _getImplements() { return array_merge_recursive(parent::_getImplements(), array('Nimbles\\Core\\Delegates\\Delegatable' => array('delegates' => array('write' => function ($body) { file_put_contents('php://stdout', $body); })))); }
/** * Magic __get to provide accesses for some properties * @param string $name * @return mixed */ public function __get($name) { if (in_array($name, array('header', 'cookie', 'session'))) { $method = 'get' . ucfirst($name); return $this->{$method}(); } return parent::__get($name); }