Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 19... Línea 19...
19
    protected $api;
19
    protected $api;
Línea 20... Línea 20...
20
 
20
 
21
    /**
21
    /**
22
     * @param Service $api
22
     * @param Service $api
23
     */
23
     */
24
    public function __construct(Service $api = null)
24
    public function __construct(?Service $api = null)
25
    {
25
    {
26
        $this->api = $api;
26
        $this->api = $api;
Línea 27... Línea 27...
27
    }
27
    }
Línea 45... Línea 45...
45
    }
45
    }
Línea 46... Línea 46...
46
 
46
 
47
    protected function populateShape(
47
    protected function populateShape(
48
        array &$data,
48
        array &$data,
49
        ResponseInterface $response,
49
        ResponseInterface $response,
50
        CommandInterface $command = null
50
        ?CommandInterface $command = null
51
    ) {
51
    ) {
Línea 52... Línea 52...
52
        $data['body'] = [];
52
        $data['body'] = [];