| 1 | <?php |
||
| 15 | class Behavior extends \yii\base\Behavior |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Cache component. |
||
| 19 | * |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | public $cache = 'cache'; |
||
| 23 | |||
| 24 | 12 | public function events() |
|
| 32 | |||
| 33 | /** |
||
| 34 | * Get array of tags for dependency. |
||
| 35 | * |
||
| 36 | * @return string[] |
||
| 37 | */ |
||
| 38 | 9 | protected function getCacheTags() |
|
| 46 | |||
| 47 | /** |
||
| 48 | * Invalidate cache for current model. |
||
| 49 | */ |
||
| 50 | 9 | public function invalidateCache() |
|
| 56 | |||
| 57 | /** |
||
| 58 | * Get tag dependency for current ActiveRecord class. |
||
| 59 | * |
||
| 60 | * @return Dependency |
||
|
|
|||
| 61 | */ |
||
| 62 | 9 | public function getTagDependency() |
|
| 68 | } |
||
| 69 |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.