| 1 | <?php |
||
| 7 | abstract class GeneratorUnit extends ExportFileUnit implements GenerateUnitInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var array |
||
| 11 | */ |
||
| 12 | protected $generatorMapping; |
||
| 13 | /** |
||
| 14 | * @var array |
||
| 15 | */ |
||
| 16 | protected $generationContributions = []; |
||
|
|
|||
| 17 | /** |
||
| 18 | * Max number and center of dispersion |
||
| 19 | * @var \SplFixedArray |
||
| 20 | */ |
||
| 21 | protected $generationSeed; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param string $code |
||
| 25 | */ |
||
| 26 | 55 | public function __construct($code) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * {@inheritdoc} |
||
| 36 | */ |
||
| 37 | 6 | public function getGeneratorMapping() |
|
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritdoc} |
||
| 44 | */ |
||
| 45 | 5 | public function setGeneratorMapping(array $generatorMapping) |
|
| 49 | |||
| 50 | /** |
||
| 51 | * {@inheritdoc} |
||
| 52 | */ |
||
| 53 | 5 | public function getGenerationSeed() |
|
| 57 | |||
| 58 | /** |
||
| 59 | * {@inheritdoc} |
||
| 60 | */ |
||
| 61 | 6 | public function setGenerationSeed(\SplFixedArray $generationSeed) |
|
| 65 | |||
| 66 | /** |
||
| 67 | * {@inheritdoc} |
||
| 68 | */ |
||
| 69 | 5 | public function getGenerationContributions() |
|
| 73 | |||
| 74 | /** |
||
| 75 | * {@inheritdoc} |
||
| 76 | */ |
||
| 77 | public function setGenerationContributions(array $generationContributions) |
||
| 81 | } |
||
| 82 |
Very long variable names usually make code harder to read. It is therefore recommended not to make variable names too verbose.