Eris\Generator\VectorGenerator::shrink PHP Method

shrink() public method

public shrink ( GeneratedValue $vector )
$vector GeneratedValue
    public function shrink(GeneratedValue $vector)
    {
        if (!$this->contains($vector)) {
            throw new DomainException('Cannot shrink ' . var_export($vector, true) . ' because it does not ' . 'belong to the domain of the Vectors with ' . count($this->generator) . ' elements of type ' . $this->elementsGeneratorClass);
        }
        return $this->generator->shrink($vector);
    }