Translate all code comments from Russian to English [skip ci]

This commit is contained in:
ErickSkrauch
2019-07-15 01:59:56 +03:00
parent 31069562b3
commit 3dbf29d34c
64 changed files with 264 additions and 286 deletions

View File

@@ -7,7 +7,7 @@ use yii\helpers\ArrayHelper;
class DataBehavior extends Behavior {
/**
* @var string имя атрибута, к которому будет применяться поведение
* @var string attribute name to which this behavior will be applied
*/
public $attribute = '_data';
@@ -31,8 +31,8 @@ class DataBehavior extends Behavior {
/**
* @return array
* @throws \yii\base\ErrorException Yii2 подхватит Notice от неправильной десериализаци и превратит его
* в свой Exception, благодаря чему программа сможем продолжить нормально работать (вернее ловить Exception)
* @throws \yii\base\ErrorException Yii2 will catch Notice from the wrong deserialization and turn it
* into its own Exception, so that the program can continue to work normally (you still should catch an Exception)
*/
private function getData() {
$data = $this->owner->{$this->attribute};