Completed
Push — master ( ea5df1...ff8f52 )
by
unknown
14:08 queued 10s
created

DateTrashed::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * @copyright Copyright (C) eZ Systems AS. All rights reserved.
5
 * @license For full copyright and license information view LICENSE file distributed with this source code.
6
 */
7
declare(strict_types=1);
8
9
namespace eZ\Publish\API\Repository\Values\Content\Query\SortClause\Trash;
10
11
use eZ\Publish\API\Repository\Values\Content\Query;
12
use eZ\Publish\API\Repository\Values\Content\Query\SortClause;
13
14
/**
15
 * Sets sort direction on the Trashed Location date for a Location query.
16
 */
17
class DateTrashed extends SortClause
18
{
19
    public function __construct(string $sortDirection = Query::SORT_ASC)
20
    {
21
        parent::__construct('trashed', $sortDirection);
22
    }
23
}
24