Commit 86bbb5f1 by Taylor Otwell

added get and set magic methods.

parent 471b7aaa
......@@ -354,6 +354,22 @@ class View implements ArrayAccess {
}
/**
* Magic Method for handling dynamic data access.
*/
public function __get($key)
{
return $this[$key];
}
/**
* Magic Method for handling the dynamic setting of data.
*/
public function __set($key, $value)
{
$this[$key] = $value;
}
/**
* Get the evaluated string content of the view.
*
* @return string
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment