- Some bugfixes were made within annotations. - Added a new Object Instanciator which allows to manipulate and define how an object from an entity must be instanciated with given value.
22 lines
427 B
PHP
22 lines
427 B
PHP
<?php
|
|
|
|
namespace Ulmus\Annotation\Property;
|
|
|
|
class OrderBy implements \Ulmus\Annotation\Annotation {
|
|
|
|
public string $field;
|
|
|
|
public string $order = "ASC";
|
|
|
|
public function __construct(string $field = null, string $order = null)
|
|
{
|
|
if ( $field !== null ) {
|
|
$this->field = $field;
|
|
}
|
|
|
|
if ( $order !== null ) {
|
|
$this->order = $order;
|
|
}
|
|
}
|
|
}
|