WSDL\Parser\Node::getNameForArray PHP Method

getNameForArray() public method

public getNameForArray ( ) : string
return string
    public function getNameForArray()
    {
        return 'ArrayOf' . ucfirst($this->getSanitizedName());
    }

Usage Example

示例#1
0
 /**
  * @param Node $node
  * @return array
  */
 private function attributes(Node $node)
 {
     if ($node->isArray()) {
         $attributes = ['name' => $node->getSanitizedName(), 'type' => 'ns:' . $node->getNameForArray()];
     } elseif ($node->isObject()) {
         $attributes = ['name' => $node->getSanitizedName(), 'element' => 'ns:' . $node->getNameForObject()];
     } else {
         $attributes = ['name' => $node->getSanitizedName(), 'type' => 'xsd:' . $node->getType()];
     }
     return $attributes;
 }
All Usage Examples Of WSDL\Parser\Node::getNameForArray