From 693b9a8b6bb9415fe3496364c5a65bd40cc1a3fe Mon Sep 17 00:00:00 2001 From: tsvetann Date: Mon, 5 May 2014 17:05:59 +0200 Subject: [PATCH] Update concept-behaviors.md fixed spelling --- docs/guide/concept-behaviors.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/concept-behaviors.md b/docs/guide/concept-behaviors.md index 28429acaef..6d37cb5be3 100644 --- a/docs/guide/concept-behaviors.md +++ b/docs/guide/concept-behaviors.md @@ -184,7 +184,7 @@ class MyBehavior extends Behavior } ``` -The above code defines the behavior class `app\components\MyBehavior` which will provides two properties +The above code defines the behavior class `app\components\MyBehavior` which will provide two properties `prop1` and `prop2`, and one method `foo()` to the component it is attached to. Note that property `prop2` is defined via the getter `getProp2()` and the setter `setProp2()`. This is so because [[yii\base\Object]] is an ancestor class of [[yii\base\Behavior]], which supports defining [properties](concept-properties.md) by getters/setters.