Línea 91... |
Línea 91... |
91 |
* @param string $contextid the context id string, as provided by the platform during launch.
|
91 |
* @param string $contextid the context id string, as provided by the platform during launch.
|
92 |
* @param array $types an array of string context types, as provided by the platform during launch.
|
92 |
* @param array $types an array of string context types, as provided by the platform during launch.
|
93 |
* @param int|null $id local id of this object instance, nullable for new objects.
|
93 |
* @param int|null $id local id of this object instance, nullable for new objects.
|
94 |
* @return context the context instance.
|
94 |
* @return context the context instance.
|
95 |
*/
|
95 |
*/
|
96 |
public static function create(int $deploymentid, string $contextid, array $types, int $id = null): context {
|
96 |
public static function create(int $deploymentid, string $contextid, array $types, ?int $id = null): context {
|
97 |
return new self($deploymentid, $contextid, $types, $id);
|
97 |
return new self($deploymentid, $contextid, $types, $id);
|
98 |
}
|
98 |
}
|
Línea 99... |
Línea 99... |
99 |
|
99 |
|
100 |
/**
|
100 |
/**
|