3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
10 namespace Zend\Soap\Wsdl\ComplexTypeStrategy
;
15 * Abstract class for Zend\Soap\Wsdl\Strategy.
17 abstract class AbstractComplexTypeStrategy
implements ComplexTypeStrategyInterface
26 * Set the WSDL Context object this strategy resides in.
28 * @param Wsdl $context
30 public function setContext(Wsdl
$context)
32 $this->context
= $context;
36 * Return the current WSDL context object
40 public function getContext()
42 return $this->context
;
46 * Look through registered types
48 * @param string $phpType
51 public function scanRegisteredTypes($phpType)
54 if (array_key_exists($phpType, $this->getContext()->getTypes())) {
55 $soapTypes = $this->getContext()->getTypes();
56 return $soapTypes[$phpType];