Файловый менеджер - Редактировать - /home/c7lekhnath/silverray.com.au/oldsite/vendor/bumbummen99/shoppingcart/src/CanBeBought.php
Назад
<?php namespace Gloudemans\Shoppingcart; trait CanBeBought { /** * Get the identifier of the Buyable item. * * @return int|string */ public function getBuyableIdentifier($options = null) { return method_exists($this, 'getKey') ? $this->getKey() : $this->id; } /** * Get the name, title or description of the Buyable item. * * @return string */ public function getBuyableDescription($options = null) { if (($name = $this->getAttribute('name'))) { return $name; } if (($title = $this->getAttribute('title'))) { return $title; } if (($description = $this->getAttribute('description'))) { return $description; } } /** * Get the price of the Buyable item. * * @return float */ public function getBuyablePrice($options = null) { if (($price = $this->getAttribute('price'))) { return $price; } } /** * Get the weight of the Buyable item. * * @return float */ public function getBuyableWeight($options = null) { if (($weight = $this->getAttribute('weight'))) { return $weight; } return 0; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.20 | Генерация страницы: 0.11 |
proxy
|
phpinfo
|
Настройка