PHP Class App\Repositories\OrderRepository

Show file Open project: ant-vel/antVel Class Usage Examples

Public Methods

Method Description
belongToUser ( User $user, $order_id, Order &$order = null ) : boolean Make sure order belong to user given.
canBeDeleted ( $type )

Method Details

belongToUser() public method

Make sure order belong to user given.
public belongToUser ( User $user, $order_id, Order &$order = null ) : boolean
$user app\User
$order app\Order
return boolean

canBeDeleted() public method

public canBeDeleted ( $type )