mirror of
https://github.com/moodle/moodle.git
synced 2025-07-16 03:46:30 +02:00
The tool_generator creates a testing scenario that can execute all steps from behat_data_generators (with some limitations), change admin settings and delete courses and users to cleanup the created entities. However, this list of valid steps will change over time and it will be great if all available steps are listed with examples.
34 lines
1.1 KiB
PHP
34 lines
1.1 KiB
PHP
<?php
|
|
// This file is part of Moodle - http://moodle.org/
|
|
//
|
|
// Moodle is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
//
|
|
// Moodle is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
namespace core\attribute;
|
|
|
|
/**
|
|
* An string attribute used to add an example of use of an object.
|
|
*
|
|
* @package core
|
|
* @copyright 2024 Ferran Recio <ferran@moodle.comk>
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
*/
|
|
#[\Attribute]
|
|
class example {
|
|
public function __construct(
|
|
/** @var string the example text. */
|
|
public readonly string $example,
|
|
) {
|
|
}
|
|
}
|