- WIP on attributes ; on testing phase
This commit is contained in:
1 parent
5295a335b3
commit
e6d0279c1a
44 files changed
+763
-142
No files matched your search
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Ulmus\Attribute\Property;
|
||||
|
||||
use Ulmus\Attribute\Attribute;
|
||||
use Ulmus\Query;
|
||||
|
||||
#[\Attribute(\Attribute::TARGET_PROPERTY | \Attribute::IS_REPEATABLE)]
|
||||
class OrWhere extends Where {
|
||||
public function __construct(
|
||||
public string|\Stringable|array $field,
|
||||
public mixed $value = null,
|
||||
public null|string $operator = null,
|
||||
public null|string $condition = Query\Where::CONDITION_OR,
|
||||
) {
|
||||
|
||||
$this->key = Attribute::handleArrayField($this->key);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user