composer update

This commit is contained in:
Manish Verma
2018-12-05 10:50:52 +05:30
parent 9eabcacfa7
commit 4addd1e9c6
3328 changed files with 156676 additions and 138988 deletions

View File

@@ -1,21 +1,4 @@
<?php
/*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* This software consists of voluntary contributions made by many individuals
* and is licensed under the MIT license. For more information, see
* <http://www.doctrine-project.org>.
*/
namespace Doctrine\DBAL\Schema;
@@ -29,86 +12,55 @@ use function trigger_error;
/**
* Object representation of a database column.
*
* @link www.doctrine-project.org
* @since 2.0
* @author Benjamin Eberlei <kontakt@beberlei.de>
*/
class Column extends AbstractAsset
{
/**
* @var Type
*/
/** @var Type */
protected $_type;
/**
* @var int|null
*/
/** @var int|null */
protected $_length = null;
/**
* @var int
*/
/** @var int */
protected $_precision = 10;
/**
* @var int
*/
/** @var int */
protected $_scale = 0;
/**
* @var bool
*/
/** @var bool */
protected $_unsigned = false;
/**
* @var bool
*/
/** @var bool */
protected $_fixed = false;
/**
* @var bool
*/
/** @var bool */
protected $_notnull = true;
/**
* @var string|null
*/
/** @var string|null */
protected $_default = null;
/**
* @var bool
*/
/** @var bool */
protected $_autoincrement = false;
/**
* @var array
*/
/** @var mixed[] */
protected $_platformOptions = [];
/**
* @var string|null
*/
/** @var string|null */
protected $_columnDefinition = null;
/**
* @var string|null
*/
/** @var string|null */
protected $_comment = null;
/**
* @var array
*/
/** @var mixed[] */
protected $_customSchemaOptions = [];
/**
* Creates a new Column.
*
* @param string $columnName
* @param Type $type
* @param array $options
* @param string $columnName
* @param mixed[] $options
*/
public function __construct($columnName, Type $type, array $options=[])
public function __construct($columnName, Type $type, array $options = [])
{
$this->_setName($columnName);
$this->setType($type);
@@ -116,18 +68,18 @@ class Column extends AbstractAsset
}
/**
* @param array $options
* @param mixed[] $options
*
* @return Column
*/
public function setOptions(array $options)
{
foreach ($options as $name => $value) {
$method = "set".$name;
if ( ! method_exists($this, $method)) {
$method = 'set' . $name;
if (! method_exists($this, $method)) {
// next major: throw an exception
@trigger_error(sprintf(
'The "%s" column option is not supported,'.
'The "%s" column option is not supported,' .
' setting it is deprecated and will cause an error in Doctrine 3.0',
$name
), E_USER_DEPRECATED);
@@ -141,8 +93,6 @@ class Column extends AbstractAsset
}
/**
* @param Type $type
*
* @return Column
*/
public function setType(Type $type)
@@ -175,7 +125,7 @@ class Column extends AbstractAsset
*/
public function setPrecision($precision)
{
if (!is_numeric($precision)) {
if (! is_numeric($precision)) {
$precision = 10; // defaults to 10 when no valid precision is given.
}
@@ -191,7 +141,7 @@ class Column extends AbstractAsset
*/
public function setScale($scale)
{
if (!is_numeric($scale)) {
if (! is_numeric($scale)) {
$scale = 0;
}
@@ -249,7 +199,7 @@ class Column extends AbstractAsset
}
/**
* @param array $platformOptions
* @param mixed[] $platformOptions
*
* @return Column
*/
@@ -350,7 +300,7 @@ class Column extends AbstractAsset
}
/**
* @return array
* @return mixed[]
*/
public function getPlatformOptions()
{
@@ -459,7 +409,7 @@ class Column extends AbstractAsset
}
/**
* @param array $customSchemaOptions
* @param mixed[] $customSchemaOptions
*
* @return Column
*/
@@ -471,7 +421,7 @@ class Column extends AbstractAsset
}
/**
* @return array
* @return mixed[]
*/
public function getCustomSchemaOptions()
{
@@ -479,7 +429,7 @@ class Column extends AbstractAsset
}
/**
* @return array
* @return mixed[]
*/
public function toArray()
{