Zend Framework  3.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AbstractLengthColumn Class Reference

Public Member Functions

 __construct ($name, $length=null, $nullable=false, $default=null, array $options=[])
 
 
 setLength ($length)
 
 getLength ()
 
 getExpressionData ()
 
- Public Member Functions inherited from Column
 __construct ($name=null, $nullable=false, $default=null, array $options=[])
 
 setName ($name)
 
 getName ()
 
 setNullable ($nullable)
 
 isNullable ()
 
 setDefault ($default)
 
 getDefault ()
 
 setOptions (array $options)
 
 setOption ($name, $value)
 
 getOptions ()
 
 addConstraint (ConstraintInterface $constraint)
 
 getExpressionData ()
 

Protected Member Functions

 getLengthExpression ()
 

Protected Attributes

 $length
 
- Protected Attributes inherited from Column
 $default
 
 $isNullable = false
 
 $name = ''
 
 $options = []
 
 $constraints = []
 
 $specification = '%s %s'
 
 $type = 'INTEGER'
 

Additional Inherited Members

- Public Attributes inherited from ExpressionInterface
const TYPE_IDENTIFIER = 'identifier'
 
const TYPE_VALUE = 'value'
 
const TYPE_LITERAL = 'literal'
 
const TYPE_SELECT = 'select'
 

Constructor & Destructor Documentation

__construct (   $name,
  $length = null,
  $nullable = false,
  $default = null,
array  $options = [] 
)

Parameters
int$length

Member Function Documentation

getExpressionData ( )
Returns
array

Implements ExpressionInterface.

getLength ( )
Returns
int
getLengthExpression ( )
protected
Returns
string
setLength (   $length)
Parameters
int$length
Returns
self

Member Data Documentation

$length
protected