| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php defined('SYSPATH') or die('No direct access allowed.'); |
||
| 37 | public function update(SplSubject $caller) |
||
| 38 | { |
||
| 39 | if (! ($caller instanceof Event_Subject)) { |
||
| 40 | throw new Kohana_Exception('event.invalid_subject', get_class($caller), get_class($this)); |
||
| 41 | } |
||
| 42 | |||
| 43 | // Update the caller |
||
| 44 | $this->caller = $caller; |
||
| 45 | |||
| 46 | return $this; |
||
| 47 | } |
||
| 48 | |||
| 72 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.