Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 62... Línea 62...
62
     * @param string $text string text
62
     * @param string $text string text
63
     * @param int $timemodified
63
     * @param int $timemodified
64
     * @param int $deleted
64
     * @param int $deleted
65
     * @param stdclass $extra
65
     * @param stdclass $extra
66
     */
66
     */
67
    public function __construct(string $id, string $text = '', int $timemodified = null,
67
    public function __construct(string $id, string $text = '', ?int $timemodified = null,
68
            int $deleted = 0, stdclass $extra = null) {
68
            int $deleted = 0, ?stdclass $extra = null) {
Línea 69... Línea 69...
69
 
69
 
70
        if (is_null($timemodified)) {
70
        if (is_null($timemodified)) {
71
            $timemodified = time();
71
            $timemodified = time();
72
        }
72
        }