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