| Total Complexity | 5 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class SurveyHasStatus extends HasStatusModel |
||
| 16 | { |
||
| 17 | |||
| 18 | /** |
||
| 19 | * {@inheritdoc} |
||
| 20 | */ |
||
| 21 | public function init() |
||
| 22 | { |
||
| 23 | $this->parentClassName = Survey::class; |
||
| 24 | parent::init(); |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * {@inheritdoc} |
||
| 29 | */ |
||
| 30 | public static function tableName() |
||
| 31 | { |
||
| 32 | return 'survey_has_status'; |
||
| 33 | } |
||
| 34 | |||
| 35 | |||
| 36 | /** |
||
| 37 | * @param Survey $survey |
||
| 38 | * @param string $status if not set Status will be taken from Email |
||
| 39 | * @return boolean |
||
| 40 | */ |
||
| 41 | public static function create($survey,$status = null){ |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * {@inheritdoc} |
||
| 53 | */ |
||
| 54 | public function rules() |
||
| 61 | } |
||
| 62 | } |
||
| 63 |