1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- /**
- * Gearman Bundle for Symfony2
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- * Feel free to edit as you please, and have fun.
- *
- * @author Marc Morera <yuhu@mmoreram.com>
- */
- namespace Mmoreram\GearmanBundle\Event\Abstracts;
- use Symfony\Component\EventDispatcher\Event;
- use GearmanTask;
- /**
- * AbstractGearmanClientTaskEvent
- */
- abstract class AbstractGearmanClientTaskEvent extends Event
- {
- /**
- * @var GearmanTask
- *
- * Gearman task object
- */
- protected $gearmanTask;
- /**
- * Construct method
- *
- * @param GearmanTask $gearmanTask Gearman Task
- */
- public function __construct(GearmanTask $gearmanTask)
- {
- $this->gearmanTask = $gearmanTask;
- }
- /**
- * Get Gearman Task
- *
- * @return GearmanTask Gearman Task
- */
- public function getGearmanTask()
- {
- return $this->gearmanTask;
- }
- }
|