Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / interface / modules / zend_modules / library / Zend / Soap / Wsdl / ComplexTypeStrategy / AbstractComplexTypeStrategy.php
blob36bc8bfc34eb3a29e229614684a930e1eb33a4b6
1 <?php
2 /**
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
8 */
10 namespace Zend\Soap\Wsdl\ComplexTypeStrategy;
12 use Zend\Soap\Wsdl;
14 /**
15 * Abstract class for Zend\Soap\Wsdl\Strategy.
17 abstract class AbstractComplexTypeStrategy implements ComplexTypeStrategyInterface
19 /**
20 * Context object
21 * @var Wsdl
23 protected $context;
25 /**
26 * Set the WSDL Context object this strategy resides in.
28 * @param Wsdl $context
30 public function setContext(Wsdl $context)
32 $this->context = $context;
35 /**
36 * Return the current WSDL context object
38 * @return Wsdl
40 public function getContext()
42 return $this->context;
45 /**
46 * Look through registered types
48 * @param string $phpType
49 * @return string
51 public function scanRegisteredTypes($phpType)
54 if (array_key_exists($phpType, $this->getContext()->getTypes())) {
55 $soapTypes = $this->getContext()->getTypes();
56 return $soapTypes[$phpType];
58 return null;