<?php
class Zend_Amf_Value_TraitsInfo
{
protected $_className;
protected $_dynamic;
protected $_externalizable;
protected $_properties;
public function __construct($className, $dynamic=false, $externalizable=false, $properties=null)
{
$this->_className = $className;
$this->_dynamic = $dynamic;
$this->_externalizable = $externalizable;
$this->_properties = $properties;
}
public function isDynamic()
{
return $this->_dynamic;
}
public function isExternalizable()
{
return $this->_externalizable;
}
public function length()
{
return count($this->_properties);
}
public function getClassName()
{
return $this->_className;
}
public function addProperty($name)
{
$this->_properties[] = $name;
return $this;
}
public function addAllProperties(array $props)
{
$this->_properties = $props;
return $this;
}
public function getProperty($index)
{
return $this->_properties[(int) $index];
}
public function getAllProperties()
{
return $this->_properties;
}
}