12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <?php
-
-
- namespace Doctrine\DBAL\Schema;
-
- use Doctrine\DBAL\Schema\Visitor\Visitor;
-
-
- class Sequence extends AbstractAsset
- {
-
-
- protected $_allocationSize = 1;
-
-
-
- protected $_initialValue = 1;
-
-
-
- public function __construct($name, $allocationSize=1, $initialValue=1)
- {
- $this->_setName($name);
- $this->_allocationSize = (is_numeric($allocationSize))?$allocationSize:1;
- $this->_initialValue = (is_numeric($initialValue))?$initialValue:1;
- }
-
- public function getAllocationSize()
- {
- return $this->_allocationSize;
- }
-
- public function getInitialValue()
- {
- return $this->_initialValue;
- }
-
- public function setAllocationSize($allocationSize)
- {
- $this->_allocationSize = (is_numeric($allocationSize))?$allocationSize:1;
- }
-
- public function setInitialValue($initialValue)
- {
- $this->_initialValue = (is_numeric($initialValue))?$initialValue:1;
- }
-
-
-
- public function visit(Visitor $visitor)
- {
- $visitor->acceptSequence($this);
- }
- }
|