mirror of
https://github.com/Karaka-Management/oms-WarehouseManagement.git
synced 2026-02-15 05:38:40 +00:00
phpstan reduction
This commit is contained in:
parent
dabb9b1828
commit
607c1fbffb
|
|
@ -35,10 +35,10 @@ class Shipping
|
||||||
/**
|
/**
|
||||||
* Order.
|
* Order.
|
||||||
*
|
*
|
||||||
* @var intstring
|
* @var int
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private $order = '';
|
private $order = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* From.
|
* From.
|
||||||
|
|
@ -87,7 +87,7 @@ class Shipping
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function __construct($id)
|
public function __construct(int $id)
|
||||||
{
|
{
|
||||||
$this->id = $id;
|
$this->id = $id;
|
||||||
}
|
}
|
||||||
|
|
@ -111,7 +111,7 @@ class Shipping
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function getOrder()
|
public function getOrder() : int
|
||||||
{
|
{
|
||||||
return $this->order;
|
return $this->order;
|
||||||
}
|
}
|
||||||
|
|
@ -125,7 +125,7 @@ class Shipping
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function setOrder($order) : void
|
public function setOrder(int $order) : void
|
||||||
{
|
{
|
||||||
$this->order = $order;
|
$this->order = $order;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user