| 1 | <?php |
||
| 5 | class Sync_Background_Process_Stopped_State extends Abstract_Sync_Background_Process_State { |
||
| 6 | |||
| 7 | /** |
||
| 8 | * @var Sync_Background_Process |
||
| 9 | */ |
||
| 10 | private $context; |
||
| 11 | |||
| 12 | function __construct( $context ) { |
||
| 17 | |||
| 18 | function enter() { |
||
| 21 | |||
| 22 | function leave() { |
||
| 25 | |||
| 26 | function task( $item ) { |
||
| 32 | |||
| 33 | } |
||
| 34 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.