| 1 | <?php | ||
| 7 | class QueuePoolOption extends WorkerOptions | ||
| 8 | { | ||
| 9 | /** | ||
| 10 | * The amount of pool worker need to start. | ||
| 11 | * | ||
| 12 | * @var int | ||
| 13 | */ | ||
| 14 | public $workers; | ||
| 15 | |||
| 16 | /** | ||
| 17 | * The environment the pool worker should run in. | ||
| 18 | * | ||
| 19 | * @var string | ||
| 20 | */ | ||
| 21 | public $environment; | ||
| 22 | |||
| 23 | /** | ||
| 24 | * Create a new pool options instance. | ||
| 25 | * | ||
| 26 | * @param int $workers | ||
| 27 | * @param string $environment | ||
| 28 | * @param int $delay | ||
| 29 | * @param int $memory | ||
| 30 | * @param int $timeout | ||
| 31 | * @param int $sleep | ||
| 32 | * @param int $maxTries | ||
| 33 | * @param bool $force | ||
| 34 | * @return void | ||
|  | |||
| 35 | */ | ||
| 36 | public function __construct($workers = 1, $environment = null, $delay = 0, $memory = 128, $timeout = 60, $sleep = 3, $maxTries = 0, $force = false) | ||
| 42 | } | ||
| 43 | 
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.