forked from thelia/thelia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
OrderStatusQuery.php
49 lines (41 loc) · 1.31 KB
/
OrderStatusQuery.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
namespace Thelia\Model;
use Thelia\Model\Base\OrderStatusQuery as BaseOrderStatusQuery;
/**
* Skeleton subclass for performing query and update operations on the 'order_status' table.
*
*
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
*/
class OrderStatusQuery extends BaseOrderStatusQuery
{
public static function getNotPaidStatus()
{
return OrderStatusQuery::create()->findOneByCode(OrderStatus::CODE_NOT_PAID);
}
public static function getPaidStatus()
{
return OrderStatusQuery::create()->findOneByCode(OrderStatus::CODE_PAID);
}
public static function getProcessingStatus()
{
return OrderStatusQuery::create()->findOneByCode(OrderStatus::CODE_PROCESSING);
}
public static function getSentStatus()
{
return OrderStatusQuery::create()->findOneByCode(OrderStatus::CODE_SENT);
}
public static function getCancelledStatus()
{
return OrderStatusQuery::create()->findOneByCode(OrderStatus::CODE_CANCELED);
}
public static function getRefundedStatus()
{
return OrderStatusQuery::create()->findOneByCode(OrderStatus::CODE_REFUNDED);
}
}
// OrderStatusQuery