| 1 | <?php |
||
| 5 | class BuildAddonJob extends AbstractQueuedJob implements QueuedJob |
||
| 6 | { |
||
| 7 | private $packageID; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * @var array params |
||
| 11 | * @throws Exception |
||
| 12 | */ |
||
| 13 | public function __construct($params = array()) { |
||
| 18 | |||
| 19 | public function setUp() |
||
| 27 | |||
| 28 | public function perform() |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | public function getTitle() |
||
| 50 | /** |
||
| 51 | * Return a signature for this queued job |
||
| 52 | * |
||
| 53 | * @return string |
||
| 54 | */ |
||
| 55 | public function getSignature() { |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @return stdClass |
||
| 61 | */ |
||
| 62 | public function getJobData() { |
||
| 73 | |||
| 74 | /** |
||
| 75 | * Do some processing yourself! |
||
| 76 | */ |
||
| 77 | public function process() |
||
| 82 | } |
||
| 83 |
Unless you are absolutely sure that the expression can never be null because of other conditions, we strongly recommend to add an additional type check to your code: