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\Stock;
use Riesenia\Pohoda\AbstractAgenda;
use Riesenia\Pohoda\Common\OptionsResolver;
class Price extends AbstractAgenda
{
* {@inheritdoc}
public function getXML(): \SimpleXMLElement
$xml = $this->createXML()->addChild('stk:stockPriceItem', '', $this->namespace('stk'));
return $this->addRefElement($xml, 'stk:stockPrice', $this->data);
}
protected function configureOptions(OptionsResolver $resolver): void
// available options
$resolver->setDefined(['ids', 'price']);