for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Daaner\NovaPoshta\Traits;
trait WarehousesFilter
{
protected $typeOfWarehouseRef;
/**
* Наличие парковки для велосипедов.
*
* @return $this
*/
public function filterBicycleParking(): self
$this->methodProperties['BicycleParking'] = 1;
return $this;
}
* Наличие PostFinance.
public function filterPostFinance(): self
$this->methodProperties['PostFinance'] = 1;
* Фильтр по типу отделения.
* @param string $typeOfWarehouseRef Ref типа отделения
public function setTypeOfWarehouseRef(string $typeOfWarehouseRef): self
$this->typeOfWarehouseRef = $typeOfWarehouseRef;
* @return void
public function getTypeOfWarehouseRef(): void
if ($this->typeOfWarehouseRef) {
$this->methodProperties['TypeOfWarehouseRef'] = $this->typeOfWarehouseRef;