コード例 #1
0
 private function loadAttribute(Schema $schema, DOMElement $node)
 {
     $attribute = new Attribute($schema, $node->getAttribute("name"));
     $attribute->setDoc($this->getDocumentation($node));
     $this->fillItem($attribute, $node);
     if ($node->hasAttribute("nillable")) {
         $attribute->setNil($node->getAttribute("nillable") == "true");
     }
     if ($node->hasAttribute("form")) {
         $attribute->setQualified($node->getAttribute("form") == "qualified");
     }
     if ($node->hasAttribute("use")) {
         $attribute->setUse($node->getAttribute("use"));
     }
     return $attribute;
 }
コード例 #2
0
 public function getType()
 {
     return $this->wrapped->getType();
 }