Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 68... Línea 68...
68
     * @param stdClass $user a user record
68
     * @param stdClass $user a user record
69
     * @param int $courseid course id
69
     * @param int $courseid course id
70
     * @param string|null $title title to display on the scored attempt (null if none attempt is the scored one)
70
     * @param string|null $title title to display on the scored attempt (null if none attempt is the scored one)
71
     * @param attempt|null $scored the scored attempt (null if none)
71
     * @param attempt|null $scored the scored attempt (null if none)
72
     */
72
     */
73
    public function __construct(array $attempts, stdClass $user, int $courseid, string $title = null, attempt $scored = null) {
73
    public function __construct(array $attempts, stdClass $user, int $courseid, ?string $title = null, ?attempt $scored = null) {
74
        $this->attempts = $attempts;
74
        $this->attempts = $attempts;
75
        $this->user = $user;
75
        $this->user = $user;
76
        $this->courseid = $courseid;
76
        $this->courseid = $courseid;
77
        $this->title = $title;
77
        $this->title = $title;
78
        $this->scored = $scored;
78
        $this->scored = $scored;