- WIP on attributes ; on testing phase

This commit is contained in:
mcndave committed 2023-01-26 13:25:59 +00:00
1 parent 5295a335b3
commit e6d0279c1a
44 files changed
+763 -142

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
<?php
namespace Ulmus\Attribute\Property;
use Ulmus\Attribute\Attribute;
#[\Attribute(\Attribute::TARGET_PROPERTY | \Attribute::IS_REPEATABLE)]
class OrderBy {
public function __construct(
public string|\Stringable|array $field,
public string $order = "ASC",
) {
$this->field = Attribute::handleArrayField($this->field);
}
}