for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Daaner\NovaPoshta\Traits;
trait AddressSettlementProperty
{
protected $AreaRef;
protected $RegionRef;
protected $Ref;
protected $Warehouse = false;
/**
* Фильтровать по области.
*
* @param string $AreaRef Ref области
* @return $this
*/
public function filterAreaRef(string $AreaRef): self
$this->AreaRef = $AreaRef;
return $this;
}
* @return void
public function getAreaRef(): void
if ($this->AreaRef) {
$this->methodProperties['AreaRef'] = $this->AreaRef;
* Фильтровать по региону.
* @param string $RegionRef Ref региона
public function filterRegionRef(string $RegionRef): self
$this->RegionRef = $RegionRef;
public function getRegionRef(): void
if ($this->RegionRef) {
$this->methodProperties['RegionRef'] = $this->RegionRef;
* Фильтровать по наличию отделений.
public function filterWarehouse(): self
$this->Warehouse = true;
public function getWarehouse(): void
if ($this->Warehouse) {
$this->methodProperties['Warehouse'] = 1;
* Фильтровать по Ref.
* @param string $ref Ref фильтра
public function filterRef(string $ref): self
$this->Ref = $ref;
public function getRef(): void
if ($this->Ref) {
$this->methodProperties['Ref'] = $this->Ref;