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

DateTrashed   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
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