for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace DalliSDK\Models;
use DalliSDK\Traits\Fillable;
use JMS\Serializer\Annotation as JMS;
/**
* Модель с информацией об акте возврата
*
* @see https://api.dalli-service.com/v1/doc/request-delivery-status
* @JMS\XmlRoot("acta")
*/
class Acta
{
use Fillable;
* Дата акта
* @JMS\XmlAttribute()
* @JMS\Type("string")
private ?string $date = null;
* Название акта
* @JMS\XmlValue
private ?string $name = null;
* @return string|null
public function getDate(): ?string
return $this->date;
}
public function getName(): ?string
return $this->name;
* @JMS\PostDeserialize
private function postDeserialize(): void
postDeserialize()
This check looks for private methods that have been defined, but are not used inside the class.
$this->date = ($this->date !== '') ? $this->date : null;
$this->name = ($this->name !== '') ? $this->name : null;
This check looks for private methods that have been defined, but are not used inside the class.