| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3.0261 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | 1 | public function init() |
|
| 34 | { |
||
| 35 | 1 | parent::init(); |
|
| 36 | 1 | if ($this->getIsNewRecord()) { |
|
| 37 | 1 | $this->content = self::INVITATION_REGISTRATION; |
|
| 38 | 1 | } elseif ($this->content != self::INVITATION_REGISTRATION) { |
|
| 39 | throw new InvalidConfigException("This invitation is not being used for registration."); |
||
| 40 | } |
||
| 41 | 1 | } |
|
| 42 | |||
| 60 |