_className = $className; $this->_dynamic = $dynamic; $this->_externalizable = $externalizable; $this->_properties = $properties; } /** * Test if the class is a dynamic class * * @return boolean */ public function isDynamic() { return $this->_dynamic; } /** * Test if class is externalizable * * @return boolean */ public function isExternalizable() { return $this->_externalizable; } /** * Return the number of properties in the class * * @return int */ public function length() { return count($this->_properties); } /** * Return the class name * * @return string */ public function getClassName() { return $this->_className; } /** * Add an additional property * * @param string $name * @return Zend_Amf_Value_TraitsInfo */ public function addProperty($name) { $this->_properties[] = $name; return $this; } /** * Add all properties of the class. * * @param array $props * @return Zend_Amf_Value_TraitsInfo */ public function addAllProperties(array $props) { $this->_properties = $props; return $this; } /** * Get the property at a given index * * @param int $index * @return string */ public function getProperty($index) { return $this->_properties[(int) $index]; } /** * Return all properties of the class. * * @return array */ public function getAllProperties() { return $this->_properties; } }