for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Zenwalker\CommerceML\Model;
use Zenwalker\CommerceML\Collections\SpecificationCollection;
/**
* Class Offer
*
* @package Zenwalker\CommerceML\Model
* @property Price prices
* @property SpecificationCollection specifications
* @property \SimpleXMLElement ХарактеристикиТовара
*/
class Offer extends Simple
{
* @var Price
protected $prices = [];
protected $specifications = [];
* @return array|SpecificationCollection
public function getSpecifications()
if (empty($this->specifications)) {
$this->specifications = new SpecificationCollection($this->owner, $this->ХарактеристикиТовара);
}
return $this->specifications;
* @return Price
public function getPrices()
if ($this->xml && empty($this->prices)) {
$this->prices = new Price($this->owner, $this->xml->Цены);
return $this->prices;