Commit 36c9d373 authored by Jon Pugh's avatar Jon Pugh

Add Conext::hasProperty() method.

parent 19b4723d
......@@ -498,6 +498,21 @@ class Context implements BuilderAwareInterface
return $this->properties;
}
/**
* Whether or not this Context has a property.
*
* @param $type
* @return bool
*/
public function hasProperty($name) {
if (isset($this->properties[$name])) {
return TRUE;
}
else {
return FALSE;
}
}
/**
* Return all properties for this context.
*
......
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