public function addSequence(Sequence $sequence)
    {
        if ($this->hasSequence($sequence->getName())) {
            throw SchemaException::schemaSequenceAlreadyExists($this->getName(), $sequence->getName());
        }

        $this->sequences[$sequence->getName()] = $sequence;
    }
public function addSequence(Sequence $sequence)
    {
        if ($this->hasSequence($sequence->getName())) {
            throw SchemaException::schemaSequenceAlreadyExists($this->getName(), $sequence->getName());
        }

        $this->sequences[$sequence->getName()] = $sequence;
    }
public function addSequence ( Sequence $ sequence ) { if ( $ this -> hasSequence ( $ sequence -> getName ( ) ) ) { throw SchemaException :: schemaSequenceAlreadyExists ( $ this -> getName ( ) , $ sequence -> getName ( ) ) ; } $ this -> sequences [ $ sequence -> getName ( ) ] = $ sequence ; }
Adds a sequence to the schema.

@param Fridge\DBAL\Schema\Sequence $sequence The sequence to add.

@throws \Fridge\DBAL\Exception\SchemaException If the sequence already exists.
Adds a sequence to the schema .