_federal_id; } /** * Устанавливает идентификатор федерального органа исполнительной власти. * * @param string|null $federal_id Идентификатор федерального органа исполнительной власти * * @return IndustryDetails */ public function setFederalId(?string $federal_id = null): self { $this->_federal_id = $this->validatePropertyValue('_federal_id', $federal_id); return $this; } /** * Возвращает дату документа основания. * * @return DateTime|null Дата документа основания */ public function getDocumentDate(): ?DateTime { return $this->_document_date; } /** * Устанавливает дату документа основания. * * @param DateTime|string|null $document_date Дата документа основания * @return IndustryDetails * @throws Exception */ public function setDocumentDate(DateTime|string|null $document_date = null): self { $this->_document_date = $this->validatePropertyValue('_document_date', $document_date); return $this; } /** * Возвращает номер нормативного акта федерального органа исполнительной власти. * * @return string|null Номер нормативного акта федерального органа исполнительной власти */ public function getDocumentNumber(): ?string { return $this->_document_number; } /** * Устанавливает номер нормативного акта федерального органа исполнительной власти. * * @param string|null $document_number Номер нормативного акта федерального органа исполнительной власти * @return self */ public function setDocumentNumber(?string $document_number = null): self { $this->_document_number = $this->validatePropertyValue('_document_number', $document_number); return $this; } /** * Возвращает значение отраслевого реквизита. * * @return string|null Значение отраслевого реквизита */ public function getValue(): ?string { return $this->_value; } /** * Устанавливает значение отраслевого реквизита. * * @param string|null $value Значение отраслевого реквизита * @return IndustryDetails */ public function setValue(?string $value = null): self { $this->_value = $this->validatePropertyValue('_value', $value); return $this; } /** * {@inheritdoc} */ public function jsonSerialize(): array { $result = parent::jsonSerialize(); $result['document_date'] = $this->getDocumentDate()->format(self::DOCUMENT_DATE_FORMAT); return $result; } }