12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <?php
- /**
- * Gearman annotations driver
- *
- * @author Marc Morera <marc@ulabox.com>
- */
- namespace Mmoreramerino\GearmanBundle\Driver\Gearman;
- use Doctrine\Common\Annotations\Annotation;
- /** @Annotation */
- final 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 $iter = null;
- /**
- * Servers assigned for all jobs of this work to be executed
- *
- * @var mixed
- */
- public $servers = 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;
- }
- /** @Annotation */
- final class Job extends Annotation
- {
- /**
- * Method name to assign into job
- *
- * @var string
- */
- public $name = null;
- /**
- * Description of Job
- *
- * @var string
- */
- public $description = null;
- /**
- * Number of iterations specified for this job
- *
- * @var integer
- */
- public $iter = null;
- /**
- * Servers assigned for this job to be executed
- *
- * @var mixed
- */
- public $servers = null;
- }
|