. namespace core\attribute; /** * An string attribute used to add an example of use of an object. * * @package core * @copyright 2024 Ferran Recio * @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, ) { } }