Merge pull request #10622 from githubjeka/patch-1

Update phpDoc Component::getBehavior().
This commit is contained in:
Dmitry Naumenko
2016-01-20 10:22:21 +02:00

View File

@@ -552,7 +552,7 @@ class Component extends Object
/**
* Returns the named behavior object.
* @param string $name the behavior name
* @return Behavior the behavior object, or null if the behavior does not exist
* @return null|Behavior the behavior object, or null if the behavior does not exist
*/
public function getBehavior($name)
{
@@ -610,7 +610,7 @@ class Component extends Object
* Detaches a behavior from the component.
* The behavior's [[Behavior::detach()]] method will be invoked.
* @param string $name the behavior's name.
* @return Behavior the detached behavior. Null if the behavior does not exist.
* @return null|Behavior the detached behavior. Null if the behavior does not exist.
*/
public function detachBehavior($name)
{