| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | public function onQueue(TransitionEvent $e) { |
||
| 34 | $deployment = $e->getStateMachine()->getObject(); |
||
| 35 | |||
| 36 | $token = $deployment->enqueueDeployment(); |
||
| 37 | $deployment->ResqueToken = $token; |
||
| 38 | $deployment->write(); |
||
| 39 | |||
| 40 | $log = $deployment->log(); |
||
| 41 | $log->write(sprintf( |
||
| 42 | 'Deploy queued as job %s (sigFile is %s)', |
||
| 43 | $token, |
||
| 44 | DeployJob::sig_file_for_data_object($obj) |
||
| 45 | )); |
||
| 46 | } |
||
| 47 | |||
| 55 |
If you implement
__calland you know which methods are available, you can improve IDE auto-completion and static analysis by adding a @method annotation to the class.This is often the case, when
__callis implemented by a parent class and only the child class knows which methods exist: