Proyectos de Subversion Moodle

Rev

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

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