| Total Complexity | 5 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 16 | class SurveyHasStatus extends HasStatusModel |
||
| 17 | { |
||
| 18 | /** @var string */ |
||
| 19 | public $statusModelClass = Status::class; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * {@inheritdoc} |
||
| 23 | */ |
||
| 24 | public function init() |
||
| 25 | { |
||
| 26 | $this->parentClassName = Survey::class; |
||
| 27 | parent::init(); |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * {@inheritdoc} |
||
| 32 | */ |
||
| 33 | public static function tableName() |
||
| 34 | { |
||
| 35 | return 'survey_has_status'; |
||
| 36 | } |
||
| 37 | |||
| 38 | |||
| 39 | /** |
||
| 40 | * @param Survey $survey |
||
| 41 | * @param string $status if not set Status will be taken from Email |
||
| 42 | * @return boolean |
||
| 43 | */ |
||
| 44 | public static function create($survey,$status = null){ |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * {@inheritdoc} |
||
| 56 | */ |
||
| 57 | public function rules() |
||
| 64 | } |
||
| 65 | } |
||
| 66 |