Sunnysideup\Ecommerce\Model\Order::get_by_id_if_can_view
Like the standard byID, but it checks whether we are allowed to view the order.
Signature
public function get_by_id_if_can_view(int
$id )
Parameters
$id
— int
Returns
- null|Order