lib/Model/Subject.php
public function createVariant(ParameterSet $parameterSet, $revolutions, $warmup, array $computedStats = [])
    {
        $variant = new Variant(
            $this,
            $parameterSet,
            $revolutions,
            $warmup,
            $computedStats
        );
        $this->variants[] = $variant;

        return $variant;
    }
public function createVariant(ParameterSet $parameterSet, $revolutions, $warmup, array $computedStats = [])
    {
        $variant = new Variant(
            $this,
            $parameterSet,
            $revolutions,
            $warmup,
            $computedStats
        );
        $this->variants[] = $variant;

        return $variant;
    }
public function createVariant ( ParameterSet $ parameterSet , $ revolutions , $ warmup , array $ computedStats = [ ] ) { $ variant = new Variant ( $ this , $ parameterSet , $ revolutions , $ warmup , $ computedStats ) ; $ this -> variants [ ] = $ variant ; return $ variant ; }
Create and add a new variant based on this subject.

@param ParameterSet $parameterSet
@param int $revolutions
@param int $warmup

@return Variant.
Create and add a new variant based on this subject .