1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <?php
- /**
- * Gearman Bundle for Symfony2
- *
- * @author Marc Morera <yuhu@mmoreram.com>
- * @since 2013
- */
- namespace Mmoreram\GearmanBundle\Driver\Gearman;
- use Doctrine\Common\Annotations\Annotation;
- /**
- * Gearman Work annotation driver
- *
- * @Annotation
- */
- class Work extends Annotation
- {
- /**
- * Name of worker
- *
- * @var integer
- */
- public $name = null;
- /**
- * Description of Worker
- *
- * @var string
- */
- public $description = null;
- /**
- * Number of iterations specified for all jobs inside Work
- *
- * @var integer
- */
- public $iterations = null;
- /**
- * Servers assigned for all jobs of this work to be executed
- *
- * @var mixed
- */
- public $servers = null;
- /**
- * Default method to call for all jobs inside this work
- *
- * @var string
- */
- public $defaultMethod = null;
- /**
- * Service typeof Class. If it's defined, object will be instanced throught service dependence injection.
- * Otherwise, class will be instance with new() method
- *
- * @var string
- */
- public $service = null;
- }
|