for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of riesenia/pohoda package.
*
* Licensed under the MIT License
* (c) RIESENIA.com
*/
declare(strict_types=1);
namespace Riesenia\Pohoda;
* @property array{
* links?: iterable<Type\Link>,
* } $data
class IssueSlip extends AbstractDocument
{
public function getImportRoot(): string
return 'lst:vydejka';
}
* Add link.
* @param array<string,mixed> $data
* @return $this
public function addLink(array $data): self
if (!isset($this->data['links'])
|| !(
is_array($this->data['links'])
|| (is_a($this->data['links'], \ArrayAccess::class))
)
) {
$this->data['links'] = [];
$link = new Type\Link($this->namespacesPaths, $this->sanitizeEncoding, $this->normalizerFactory);
$link->setDirectionalVariable($this->useOneDirectionalVariables)->setResolveOptions($this->resolveOptions)->setData($data);
$this->data['links'][] = $link;
return $this;
* {@inheritdoc}
protected function getDocumentElements(): array
return \array_merge(parent::getDocumentElements(), ['links']);
protected function getDocumentNamespace(): string
return 'vyd';
protected function getDocumentName(): string
return 'vydejka';