for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Zenwalker\CommerceML\Model;
class Image extends Simple
{
/**
* @return string
*/
public function getPath()
return (string)$this->xml;
}
* @return 1|array|null
1|array|null
0
public function getCaption()
if ($xml = $this->xpath("//c:ЗначениеРеквизита[contains(c:Значение, '{$this->path}#')]")) {
path
Zenwalker\CommerceML\Model\Image
__get
return \array_slice(explode('#', (string)$xml[0]->Значение), 1);
return null;