TaskItem.php 574 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace App\Http\Controllers\api\thirdPart\syrius\beans;
  3. class TaskItem
  4. {
  5. public $name; //名称 string
  6. public $barcode; //条码 string
  7. public $quantity; //数量 int
  8. //Optional
  9. public $imageUrl; //示意图 string
  10. public $binLocations; //库位数组 array
  11. public $attributes; //一些属性{storageSerialNo:"",orderCode:"",...}
  12. public function get()
  13. {
  14. $this->attributes = (array)$this->attributes;
  15. if (!$this->imageUrl)unset($this->imageUrl);
  16. return $this;
  17. }
  18. }