for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Maketok\DataMigration\Unit\Type;
use Maketok\DataMigration\Unit\GenerateUnitInterface;
abstract class GeneratorUnit extends ExportFileUnit implements GenerateUnitInterface
{
/**
* @var array
*/
protected $generatorMapping;
protected $generationContributions = [];
$generationContributions
20
Very long variable names usually make code harder to read. It is therefore recommended not to make variable names too verbose.
* Max number and center of dispersion
* @var \SplFixedArray
protected $generationSeed;
* @param string $code
public function __construct($code)
parent::__construct($code);
$this->generationSeed = new \SplFixedArray(2);
$this->generationSeed[0] = 1;
$this->generationSeed[1] = 1;
}
* {@inheritdoc}
public function getGeneratorMapping()
return $this->generatorMapping;
public function setGeneratorMapping(array $generatorMapping)
$this->generatorMapping = $generatorMapping;
public function getGenerationSeed()
return $this->generationSeed;
public function setGenerationSeed(\SplFixedArray $generationSeed)
$this->generationSeed = $generationSeed;
public function getGenerationContributions()
return $this->generationContributions;
public function setGenerationContributions(array $generationContributions)
$this->generationContributions = $generationContributions;
Very long variable names usually make code harder to read. It is therefore recommended not to make variable names too verbose.