Proyectos de Subversion Moodle

Rev

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

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