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