Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 69... Línea 69...
69
     *
69
     *
70
     * @param int       $id       The ID of the record in the database.
70
     * @param int       $id       The ID of the record in the database.
71
     * @param callable  $callback Callback to load the class.
71
     * @param callable  $callback Callback to load the class.
72
     * @param \stdClass $base     Class containing base values.
72
     * @param \stdClass $base     Class containing base values.
73
     */
73
     */
74
    public function __construct($id, callable $callback, \stdClass $base = null) {
74
    public function __construct($id, callable $callback, ?\stdClass $base = null) {
75
        $this->id = $id;
75
        $this->id = $id;
76
        $this->callbackargs = [$id];
76
        $this->callbackargs = [$id];
77
        $this->callback = $callback;
77
        $this->callback = $callback;
78
        $this->base = $base;
78
        $this->base = $base;
79
    }
79
    }