Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 18... Línea 18...
18
     * @param XmlBody $xmlBody  Optional XML formatter to use
18
     * @param XmlBody $xmlBody  Optional XML formatter to use
19
     */
19
     */
20
    public function __construct(
20
    public function __construct(
21
        Service $api,
21
        Service $api,
22
        $endpoint,
22
        $endpoint,
23
        XmlBody $xmlBody = null
23
        ?XmlBody $xmlBody = null
24
    ) {
24
    ) {
25
        parent::__construct($api, $endpoint);
25
        parent::__construct($api, $endpoint);
26
        $this->xmlBody = $xmlBody ?: new XmlBody($api);
26
        $this->xmlBody = $xmlBody ?: new XmlBody($api);
27
    }
27
    }