Skip to content

Commit

Permalink
allow to read all che ports from a wsdl
Browse files Browse the repository at this point in the history
  • Loading branch information
goetas committed Sep 30, 2016
1 parent 2a2a522 commit cadf2bb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Wsdl/Definitions.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,18 @@ public function getPortTypes()
return $this->portType;
}

/**
* @return \GoetasWebservices\XML\WSDLReader\Wsdl\PortType[]
*/
public function getAllPortTypes()
{
$types = $this->getPortTypes();
foreach ($this->getImports() as $child) {
$types = array_merge($types, $child->getAllPortTypes());
}
return $types;
}

/**
* @param $binding \GoetasWebservices\XML\WSDLReader\Wsdl\Binding
*/
Expand Down

0 comments on commit cadf2bb

Please sign in to comment.