for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Daaner\NovaPoshta\Traits;
trait CommonFilter
{
protected $length;
protected $width;
protected $height;
protected $volumetricWeight;
/**
* @param int|string $length Длина
* @return $this
*/
public function setLength($length): self
$this->length = $length;
return $this;
}
* @param int|string $width Ширина
public function setWidth($width): self
$this->width = $width;
* @param int|string $height Высота
public function setHeight($height): self
$this->height = $height;
* @param int|string $volumetricWeight Объемный вес
public function setVolumetricWeight($volumetricWeight): self
$this->volumetricWeight = $volumetricWeight;
* @return void
public function getLength(): void
if ($this->length) {
$this->methodProperties['Length'] = $this->length;
public function getWidth(): void
if ($this->width) {
$this->methodProperties['Width'] = $this->width;
public function getHeight(): void
if ($this->height) {
$this->methodProperties['Height'] = $this->height;
public function getVolumetricWeight(): void
if ($this->volumetricWeight) {
$this->methodProperties['VolumetricWeight'] = $this->volumetricWeight;