Skip to content
Permalink
Browse files

Add back $name and __construct() to Type classes.

  • Loading branch information...
ADmad committed Dec 24, 2016
1 parent 8fe3cc3 commit 796a12db02ff554bcdbd9cf4094cb784ce8032ff
@@ -28,6 +28,28 @@
*/
class BinaryType extends Type implements TypeInterface
{
/**
* Identifier name for this type.
*
* (This property is declared here again so that the inheritance from
* Cake\Database\Type can be removed in the future.)
*
* @var string|null
*/
protected $_name = null;
/**
* Constructor.
*
* (This method is declared here again so that the inheritance from
* Cake\Database\Type can be removed in the future.)
*
* @param string|null $name The name identifying this type
*/
public function __construct($name = null)
{
$this->_name = $name;
}
/**
* Convert binary data into the database format.
@@ -27,6 +27,28 @@
*/
class BoolType extends Type implements TypeInterface
{
/**
* Identifier name for this type.
*
* (This property is declared here again so that the inheritance from
* Cake\Database\Type can be removed in the future.)
*
* @var string|null
*/
protected $_name = null;
/**
* Constructor.
*
* (This method is declared here again so that the inheritance from
* Cake\Database\Type can be removed in the future.)
*
* @param string|null $name The name identifying this type
*/
public function __construct($name = null)
{
$this->_name = $name;
}
/**
* Convert bool data into the database format.
@@ -29,6 +29,15 @@
*/
class DateTimeType extends Type implements TypeInterface
{
/**
* Identifier name for this type.
*
* (This property is declared here again so that the inheritance from
* Cake\Database\Type can be removed in the future.)
*
* @var string|null
*/
protected $_name = null;
/**
* The class to use for representing date objects
@@ -83,7 +92,7 @@ class DateTimeType extends Type implements TypeInterface
*/
public function __construct($name = null)
{
parent::__construct($name);
$this->_name = $name;
$this->_setClassName(static::$dateTimeClass, 'DateTime');
}
@@ -28,6 +28,28 @@
*/
class DecimalType extends Type implements TypeInterface
{
/**
* Identifier name for this type.
*
* (This property is declared here again so that the inheritance from
* Cake\Database\Type can be removed in the future.)
*
* @var string|null
*/
protected $_name = null;
/**
* Constructor.
*
* (This method is declared here again so that the inheritance from
* Cake\Database\Type can be removed in the future.)
*
* @param string|null $name The name identifying this type
*/
public function __construct($name = null)
{
$this->_name = $name;
}
/**
* The class to use for representing number objects
@@ -27,6 +27,28 @@
*/
class FloatType extends Type implements TypeInterface
{
/**
* Identifier name for this type.
*
* (This property is declared here again so that the inheritance from
* Cake\Database\Type can be removed in the future.)
*
* @var string|null
*/
protected $_name = null;
/**
* Constructor.
*
* (This method is declared here again so that the inheritance from
* Cake\Database\Type can be removed in the future.)
*
* @param string|null $name The name identifying this type
*/
public function __construct($name = null)
{
$this->_name = $name;
}
/**
* The class to use for representing number objects
@@ -27,6 +27,28 @@
*/
class IntegerType extends Type implements TypeInterface
{
/**
* Identifier name for this type.
*
* (This property is declared here again so that the inheritance from
* Cake\Database\Type can be removed in the future.)
*
* @var string|null
*/
protected $_name = null;
/**
* Constructor.
*
* (This method is declared here again so that the inheritance from
* Cake\Database\Type can be removed in the future.)
*
* @param string|null $name The name identifying this type
*/
public function __construct($name = null)
{
$this->_name = $name;
}
/**
* Convert integer data into the database format.
@@ -27,6 +27,28 @@
*/
class JsonType extends Type implements TypeInterface
{
/**
* Identifier name for this type.
*
* (This property is declared here again so that the inheritance from
* Cake\Database\Type can be removed in the future.)
*
* @var string|null
*/
protected $_name = null;
/**
* Constructor.
*
* (This method is declared here again so that the inheritance from
* Cake\Database\Type can be removed in the future.)
*
* @param string|null $name The name identifying this type
*/
public function __construct($name = null)
{
$this->_name = $name;
}
/**
* Convert a value data into a JSON string

0 comments on commit 796a12d

Please sign in to comment.
You can’t perform that action at this time.