Skip to content

Commit

Permalink
Use full paths due to dependency injection
Browse files Browse the repository at this point in the history
  • Loading branch information
HenriNijborg committed Feb 28, 2020
1 parent 7540e3c commit 18725b8
Show file tree
Hide file tree
Showing 39 changed files with 175 additions and 296 deletions.
4 changes: 2 additions & 2 deletions Api/Data/OrderStateInterface.php
Expand Up @@ -11,7 +11,7 @@ public function getCode();

/**
* @param string $code
* @return OrderStateInterface
* @return \Dealer4dealer\Xcore\Api\Data\OrderStateInterface
*/
public function setCode($code);

Expand All @@ -22,7 +22,7 @@ public function getName();

/**
* @param string $name
* @return OrderStateInterface
* @return \Dealer4dealer\Xcore\Api\Data\OrderStateInterface
*/
public function setName($name);
}
4 changes: 2 additions & 2 deletions Api/Data/OrderStatusInterface.php
Expand Up @@ -11,7 +11,7 @@ public function getCode();

/**
* @param string $code
* @return OrderStatusInterface
* @return \Dealer4dealer\Xcore\Api\Data\OrderStatusInterface
*/
public function setCode($code);

Expand All @@ -22,7 +22,7 @@ public function getName();

/**
* @param string $name
* @return OrderStatusInterface
* @return \Dealer4dealer\Xcore\Api\Data\OrderStatusInterface
*/
public function setName($name);
}
10 changes: 4 additions & 6 deletions Api/Data/PaymentCostInterface.php
Expand Up @@ -2,9 +2,7 @@

namespace Dealer4dealer\Xcore\Api\Data;

use Magento\Framework\Api\ExtensibleDataInterface;

interface PaymentCostInterface extends ExtensibleDataInterface
interface PaymentCostInterface extends \Magento\Framework\Api\ExtensibleDataInterface
{
const TITLE = 'title';
const BASE_AMOUNT = 'base_amount';
Expand All @@ -22,7 +20,7 @@ public function getTitle();
* Set the title of the payment cost.
*
* @param string $title
* @return $this
* @return \Dealer4dealer\Xcore\Api\Data\PaymentCostInterface
*/
public function setTitle($title);

Expand All @@ -37,7 +35,7 @@ public function getBaseAmount();
* Set the base amount of the payment cost.
*
* @param float $baseAmount
* @return $this
* @return \Dealer4dealer\Xcore\Api\Data\PaymentCostInterface
*/
public function setBaseAmount($baseAmount);

Expand All @@ -52,7 +50,7 @@ public function getAmount();
* Set the amount of the payment cost.
*
* @param float $amount
* @return $this
* @return \Dealer4dealer\Xcore\Api\Data\PaymentCostInterface
*/
public function setAmount($amount);

Expand Down
4 changes: 2 additions & 2 deletions Api/Data/PaymentMethodInterface.php
Expand Up @@ -11,7 +11,7 @@ public function getCode();

/**
* @param string $code
* @return PaymentMethodInterface
* @return \Dealer4dealer\Xcore\Api\Data\PaymentMethodInterface
*/
public function setCode($code);

Expand All @@ -22,7 +22,7 @@ public function getName();

/**
* @param string $name
* @return PaymentMethodInterface
* @return \Dealer4dealer\Xcore\Api\Data\PaymentMethodInterface
*/
public function setName($name);
}
12 changes: 6 additions & 6 deletions Api/Data/PriceListInterface.php
Expand Up @@ -20,7 +20,7 @@ public function getId();
* Set id
*
* @param string $id
* @return PriceListInterface
* @return \Dealer4dealer\Xcore\Api\Data\PriceListInterface
*/
public function setId($id);

Expand All @@ -35,7 +35,7 @@ public function getGuid();
* Set guid
*
* @param string $guid
* @return PriceListInterface
* @return \Dealer4dealer\Xcore\Api\Data\PriceListInterface
*/
public function setGuid($guid);

Expand All @@ -50,18 +50,18 @@ public function getCode();
* Set code
*
* @param string $code
* @return PriceListInterface
* @return \Dealer4dealer\Xcore\Api\Data\PriceListInterface
*/
public function setCode($code);

/**
* @return PriceListItemInterface[]
* @return \Dealer4dealer\Xcore\Api\Data\PriceListItemInterface[]
*/
public function getItems();

/**
* @param PriceListItemInterface[] $items
* @return PriceListInterface
* @param \Dealer4dealer\Xcore\Api\Data\PriceListItemInterface[] $items
* @return \Dealer4dealer\Xcore\Api\Data\PriceListInterface
*/
public function setItems($items);
}
16 changes: 8 additions & 8 deletions Api/Data/PriceListItemInterface.php
Expand Up @@ -24,7 +24,7 @@ public function getId();
* Set id
*
* @param string $id
* @return PriceListItemInterface
* @return \Dealer4dealer\Xcore\Api\Data\PriceListItemInterface
*/
public function setId($id);

Expand All @@ -39,7 +39,7 @@ public function getPriceListId();
* Set price_list_id
*
* @param string $price_list_id
* @return PriceListItemInterface
* @return \Dealer4dealer\Xcore\Api\Data\PriceListItemInterface
*/
public function setPriceListId($price_list_id);

Expand All @@ -54,7 +54,7 @@ public function getProductSku();
* Set product_sku
*
* @param string $product_sku
* @return PriceListItemInterface
* @return \Dealer4dealer\Xcore\Api\Data\PriceListItemInterface
*/
public function setProductSku($product_sku);

Expand All @@ -69,7 +69,7 @@ public function getQty();
* Set qty
*
* @param string $qty
* @return PriceListItemInterface
* @return \Dealer4dealer\Xcore\Api\Data\PriceListItemInterface
*/
public function setQty($qty);

Expand All @@ -84,7 +84,7 @@ public function getPrice();
* Set price
*
* @param string $price
* @return PriceListItemInterface
* @return \Dealer4dealer\Xcore\Api\Data\PriceListItemInterface
*/
public function setPrice($price);

Expand All @@ -99,7 +99,7 @@ public function getStartDate();
* Set start_date
*
* @param string $start_date
* @return PriceListItemInterface
* @return \Dealer4dealer\Xcore\Api\Data\PriceListItemInterface
*/
public function setStartDate($start_date);

Expand All @@ -114,7 +114,7 @@ public function getEndDate();
* Set end_date
*
* @param string $end_date
* @return PriceListItemInterface
* @return \Dealer4dealer\Xcore\Api\Data\PriceListItemInterface
*/
public function setEndDate($end_date);

Expand All @@ -129,7 +129,7 @@ public function getProcessed();
* Set processed
*
* @param string $int
* @return PriceListItemInterface
* @return \Dealer4dealer\Xcore\Api\Data\PriceListItemInterface
*/
public function setProcessed($int);
}
10 changes: 4 additions & 6 deletions Api/Data/PriceListItemSearchResultsInterface.php
Expand Up @@ -2,22 +2,20 @@

namespace Dealer4dealer\Xcore\Api\Data;

use Magento\Framework\Api\SearchResultsInterface;

interface PriceListItemSearchResultsInterface extends SearchResultsInterface
interface PriceListItemSearchResultsInterface extends \Magento\Framework\Api\SearchResultsInterface
{
/**
* Get price_list_item list.
*
* @return PriceListItemInterface[]
* @return \Dealer4dealer\Xcore\Api\Data\PriceListItemInterface[]
*/
public function getItems();

/**
* Set price_list_item list.
*
* @param PriceListItemInterface[] $items
* @return $this
* @param \Dealer4dealer\Xcore\Api\Data\PriceListItemInterface[] $items
* @return \Dealer4dealer\Xcore\Api\Data\PriceListItemSearchResultsInterface
*/
public function setItems(array $items);
}
10 changes: 4 additions & 6 deletions Api/Data/PriceListSearchResultsInterface.php
Expand Up @@ -2,22 +2,20 @@

namespace Dealer4dealer\Xcore\Api\Data;

use Magento\Framework\Api\SearchResultsInterface;

interface PriceListSearchResultsInterface extends SearchResultsInterface
interface PriceListSearchResultsInterface extends \Magento\Framework\Api\SearchResultsInterface
{
/**
* Get price_list list.
*
* @return PriceListInterface[]
* @return \Dealer4dealer\Xcore\Api\Data\PriceListInterface[]
*/
public function getItems();

/**
* Set price_list list.
*
* @param PriceListInterface[] $items
* @return $this
* @param \Dealer4dealer\Xcore\Api\Data\PriceListInterface[] $items
* @return \Dealer4dealer\Xcore\Api\Data\PriceListSearchResultsInterface
*/
public function setItems(array $items);
}
4 changes: 2 additions & 2 deletions Api/Data/ShippingMethodInterface.php
Expand Up @@ -11,7 +11,7 @@ public function getCode();

/**
* @param string $code
* @return ShippingMethodInterface
* @return \Dealer4dealer\Xcore\Api\Data\ShippingMethodInterface
*/
public function setCode($code);

Expand All @@ -22,7 +22,7 @@ public function getName();

/**
* @param string $name
* @return ShippingMethodInterface
* @return \Dealer4dealer\Xcore\Api\Data\ShippingMethodInterface
*/
public function setName($name);
}
6 changes: 3 additions & 3 deletions Api/Data/VersionInterface.php
Expand Up @@ -11,7 +11,7 @@ public function getMagentoVersion();

/**
* @param string $version
* @return VersionInterface
* @return \Dealer4dealer\Xcore\Api\Data\VersionInterface
*/
public function setMagentoVersion($version);

Expand All @@ -22,7 +22,7 @@ public function getMagentoEdition();

/**
* @param string $edition
* @return VersionInterface
* @return \Dealer4dealer\Xcore\Api\Data\VersionInterface
*/
public function setMagentoEdition($edition);

Expand All @@ -33,7 +33,7 @@ public function getRestVersion();

/**
* @param string $version
* @return VersionInterface
* @return \Dealer4dealer\Xcore\Api\Data\VersionInterface
*/
public function setRestVersion($version);
}
4 changes: 1 addition & 3 deletions Api/OrderStateRepositoryInterface.php
Expand Up @@ -2,14 +2,12 @@

namespace Dealer4dealer\Xcore\Api;

use Dealer4dealer\Xcore\Api\Data\OrderStateInterface;

interface OrderStateRepositoryInterface
{
/**
* Get a list of all order states.
*
* @return OrderStateInterface[]
* @return \Dealer4dealer\Xcore\Api\Data\OrderStateInterface[]
*/
public function getList();
}
4 changes: 1 addition & 3 deletions Api/OrderStatusRepositoryInterface.php
Expand Up @@ -2,14 +2,12 @@

namespace Dealer4dealer\Xcore\Api;

use Dealer4dealer\Xcore\Api\Data\OrderStatusInterface;

interface OrderStatusRepositoryInterface
{
/**
* Get a list of all order states.
*
* @return OrderStatusInterface[]
* @return \Dealer4dealer\Xcore\Api\Data\OrderStatusInterface[]
*/
public function getList();
}
4 changes: 1 addition & 3 deletions Api/PaymentMethodRepositoryInterface.php
Expand Up @@ -2,14 +2,12 @@

namespace Dealer4dealer\Xcore\Api;

use Dealer4dealer\Xcore\Api\Data\PaymentMethodInterface;

interface PaymentMethodRepositoryInterface
{
/**
* Get a list of all payment methods.
*
* @return PaymentMethodInterface[]
* @return \Dealer4dealer\Xcore\Api\Data\PaymentMethodInterface[]
*/
public function getList();
}

0 comments on commit 18725b8

Please sign in to comment.