<?php
declare(strict_types=1);
namespace Doctrine\DBAL\Schema;
use function count;
use function sprintf;
class Sequence extends AbstractAsset
{
protected int $allocationSize = 1;
protected int $initialValue = 1;
public function __construct(
string $name,
int $allocationSize = 1,
int $initialValue = 1,
protected ?int $cache = null,
) {
$this->_setName($name);
$this->setAllocationSize($allocationSize);
$this->setInitialValue($initialValue);
}
public function getAllocationSize(): int
{
return $this->allocationSize;
}
public function getInitialValue(): int
{
return $this->initialValue;
}
public function getCache(): ?int
{
return $this->cache;
}
public function setAllocationSize(int $allocationSize): self