Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 48... Línea 48...
48
     *
48
     *
49
     * @param stdClass $data the original xAPI element
49
     * @param stdClass $data the original xAPI element
50
     * @param int $duration duration in seconds
50
     * @param int $duration duration in seconds
51
     * @param item_score $score the provided score
51
     * @param item_score $score the provided score
52
     */
52
     */
53
    protected function __construct(stdClass $data, int $duration = null, item_score $score = null) {
53
    protected function __construct(stdClass $data, ?int $duration = null, ?item_score $score = null) {
54
        parent::__construct($data);
54
        parent::__construct($data);
55
        $this->duration = $duration;
55
        $this->duration = $duration;
56
        $this->score = $score;
56
        $this->score = $score;
57
    }
57
    }