Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 15... Línea 15...
15
{
15
{
16
    use PayloadParserTrait;
16
    use PayloadParserTrait;
Línea 17... Línea 17...
17
 
17
 
Línea 18... Línea 18...
18
    protected $parser;
18
    protected $parser;
19
 
19
 
20
    public function __construct(Service $api = null, XmlParser $parser = null)
20
    public function __construct(?Service $api = null, ?XmlParser $parser = null)
21
    {
21
    {
22
        parent::__construct($api);
22
        parent::__construct($api);
Línea 23... Línea 23...
23
        $this->parser = $parser ?: new XmlParser();
23
        $this->parser = $parser ?: new XmlParser();
24
    }
24
    }
25
 
25
 
26
    public function __invoke(
26
    public function __invoke(
27
        ResponseInterface $response,
27
        ResponseInterface $response,
Línea 28... Línea 28...
28
        CommandInterface $command = null
28
        ?CommandInterface $command = null
29
    ) {
29
    ) {