Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
3 / 3
CRAP
100.00% covered (success)
100.00%
1 / 1
TagOutput
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
3 / 3
3
100.00% covered (success)
100.00%
1 / 1
 parsingTag
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getKnownType
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setKnownType
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace WsdlToPhp\PackageGenerator\Parser\Wsdl;
6
7use WsdlToPhp\PackageGenerator\Model\Method;
8use WsdlToPhp\WsdlHandler\Wsdl as WsdlDocument;
9
10final class TagOutput extends AbstractTagInputOutputParser
11{
12    protected function parsingTag(): string
13    {
14        return WsdlDocument::TAG_OUTPUT;
15    }
16
17    protected function getKnownType(Method $method)
18    {
19        return $method->getReturnType();
20    }
21
22    protected function setKnownType(Method $method, $knownType): self
23    {
24        $method->setReturnType($knownType);
25
26        return $this;
27    }
28}