diff --git a/attributes/model.php b/attributes/model.php new file mode 100644 index 0000000..7a831d3 --- /dev/null +++ b/attributes/model.php @@ -0,0 +1,11 @@ +'; +foreach ($reflect->getAttributes() as $attribute) { + echo $attribute->getName() . PHP_EOL; + echo $attribute->newInstance()->info() . PHP_EOL;; +} +echo ''; diff --git a/attributes/model/user.php b/attributes/model/user.php new file mode 100644 index 0000000..5ea66e7 --- /dev/null +++ b/attributes/model/user.php @@ -0,0 +1,23 @@ +'; +foreach ($reflect->getAttributes(Model::class) as $attribute) { + echo $attribute->getName() . PHP_EOL; + echo $attribute->newInstance()->info() . PHP_EOL;; +} +echo '';