<?php
namespace front\factory;

class ShopStatuses {

  // get_apilo_status_id
  static public function get_apilo_status_id( $status_id ) {
    global $mdb;
    $repo = new \Domain\ShopStatus\ShopStatusRepository( $mdb );
    return $repo->getApiloStatusId( (int)$status_id );
  }

  // get_shop_status_by_integration_status_id
  static public function get_shop_status_by_integration_status_id( $integration, $integration_status_id )
  {
    global $mdb;
    $repo = new \Domain\ShopStatus\ShopStatusRepository( $mdb );
    return $repo->getByIntegrationStatusId( (string)$integration, (int)$integration_status_id );
  }
}