예제 #1
0
 private function _generateElements(Type $parameter, TypesElement $element)
 {
     list($type, $value) = $this->_prepareTypeAndValue($parameter);
     $element->setElementAttributes($type, $value, $parameter->getName());
     if (!TypeHelper::isSimple($parameter)) {
         $complexType = $this->_generateComplexType($parameter);
         $element->setComplex($complexType);
     }
 }
예제 #2
0
파일: Style.php 프로젝트: phogl/autoloader
 protected function _setComplexTypeIfNeeded($complexType, TypesElement $typesElement)
 {
     if (TypeHelper::isArray($complexType)) {
         $typesElement->setComplex($this->_generateArray($complexType));
     } elseif ($complexType instanceof Type && !TypeHelper::isSimple($complexType) && $complexType->getComplexType()) {
         $typesElement->setComplex($this->_generateComplexType($complexType->getComplexType()));
     }
 }