| Total Complexity | 4 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 22.22% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class ArticleMeta extends ActiveRecord |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * {@inheritdoc} |
||
| 18 | */ |
||
| 19 | 2 | public static function tableName() |
|
| 20 | { |
||
| 21 | 2 | return '{{%article_meta}}'; |
|
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * {@inheritdoc} |
||
| 26 | */ |
||
| 27 | public function rules() |
||
| 28 | { |
||
| 29 | return [ |
||
| 30 | [['article_id'], 'required'], |
||
| 31 | [['article_id'], 'integer'], |
||
| 32 | [['content'], 'string'], |
||
| 33 | [['article_id'], 'unique'], |
||
| 34 | ]; |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * {@inheritdoc} |
||
| 39 | */ |
||
| 40 | public function attributeLabels() |
||
| 45 | ]; |
||
| 46 | } |
||
| 47 | |||
| 48 | public function getArticle() |
||
| 51 | } |
||
| 52 | } |
||
| 53 |