mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-15 22:09:48 +08:00
Merge pull request #10622 from githubjeka/patch-1
Update phpDoc Component::getBehavior().
This commit is contained in:
@@ -552,7 +552,7 @@ class Component extends Object
|
|||||||
/**
|
/**
|
||||||
* Returns the named behavior object.
|
* Returns the named behavior object.
|
||||||
* @param string $name the behavior name
|
* @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)
|
public function getBehavior($name)
|
||||||
{
|
{
|
||||||
@@ -610,7 +610,7 @@ class Component extends Object
|
|||||||
* Detaches a behavior from the component.
|
* Detaches a behavior from the component.
|
||||||
* The behavior's [[Behavior::detach()]] method will be invoked.
|
* The behavior's [[Behavior::detach()]] method will be invoked.
|
||||||
* @param string $name the behavior's name.
|
* @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)
|
public function detachBehavior($name)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user