Commit f27027d3 authored by Phill Sparks's avatar Phill Sparks

Added __isset and __unset to Fluent

Signed-off-by: 's avatarPhill Sparks <me@phills.me.uk>
parent 32e194ad
...@@ -77,4 +77,20 @@ class Fluent { ...@@ -77,4 +77,20 @@ class Fluent {
$this->attributes[$key] = $value; $this->attributes[$key] = $value;
} }
/**
* Dynamically check if an attribute is set.
*/
public function __isset($key)
{
return isset($this->attributes[$key]);
}
/**
* Dynamically unset an attribute.
*/
public function __unset($key)
{
return unset($this->attributes[$key]);
}
} }
\ No newline at end of file
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