1 | <?php |
||
8 | abstract class AbstractDocument extends AbstractModel |
||
9 | { |
||
10 | /** |
||
11 | * The content |
||
12 | * @var WsdlContent |
||
13 | */ |
||
14 | protected $content; |
||
15 | /** |
||
16 | * @param Generator $generator |
||
17 | * @param string $name |
||
18 | * @param string $content |
||
19 | */ |
||
20 | 720 | public function __construct(Generator $generator, $name, $content) |
|
21 | { |
||
22 | 720 | parent::__construct($generator, $name); |
|
23 | 720 | $this->setContent($content); |
|
24 | 710 | } |
|
25 | /** |
||
26 | * @return string |
||
27 | */ |
||
28 | abstract protected function contentClass(); |
||
29 | /** |
||
30 | * @param string $content wsdl/schema content |
||
31 | * @return AbstractDocument |
||
32 | */ |
||
33 | 720 | protected function setContent($content) |
|
45 | /** |
||
46 | * |
||
47 | * @return \WsdlToPhp\PackageGenerator\WsdlHandler\AbstractDocument |
||
48 | */ |
||
49 | 700 | public function getContent() |
|
53 | /** |
||
54 | * {@inheritDoc} |
||
55 | * @see \WsdlToPhp\PackageGenerator\Model\AbstractModel::toJsonSerialize() |
||
56 | */ |
||
57 | 5 | protected function toJsonSerialize() |
|
61 | } |
||
62 |