| Conditions | 3 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | public function __bootstrap() |
||
| 13 | { |
||
| 14 | \Nabble\SemaltBlocker\Blocker::protect(); |
||
| 15 | |||
| 16 | Ajde_Event::register('TransactionModel', 'onPaid', [$this, 'onTransactionPaid']); |
||
| 17 | Ajde_Event::register('TransactionModel', 'onCreate', [$this, 'onTransactionCreated']); |
||
| 18 | |||
| 19 | if (UserModel::isTester() || UserModel::isAdmin()) { |
||
| 20 | $providers = Config::get('transactionProviders'); |
||
| 21 | $providers[] = 'test'; |
||
| 22 | Config::set('transactionProviders', $providers); |
||
| 23 | } |
||
| 24 | |||
| 25 | return true; |
||
| 26 | } |
||
| 27 | |||
| 47 |
Since your code implements the magic setter
_set, this function will be called for any write access on an undefined variable. You can add the@propertyannotation to your class or interface to document the existence of this variable.Since the property has write access only, you can use the @property-write annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.