mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-24 07:55:35 +00:00
Update CanBeBought.php
This commit is contained in:
@@ -9,7 +9,7 @@ trait CanBeBought
|
|||||||
*
|
*
|
||||||
* @return int|string
|
* @return int|string
|
||||||
*/
|
*/
|
||||||
public function getBuyableIdentifier($options = null)
|
public function getBuyableIdentifier()
|
||||||
{
|
{
|
||||||
return method_exists($this, 'getKey') ? $this->getKey() : $this->id;
|
return method_exists($this, 'getKey') ? $this->getKey() : $this->id;
|
||||||
}
|
}
|
||||||
@@ -19,7 +19,7 @@ trait CanBeBought
|
|||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function getBuyableDescription($options = null)
|
public function getBuyableDescription()
|
||||||
{
|
{
|
||||||
if (($name = $this->getAttribute('name'))) {
|
if (($name = $this->getAttribute('name'))) {
|
||||||
return $name;
|
return $name;
|
||||||
@@ -39,7 +39,7 @@ trait CanBeBought
|
|||||||
*
|
*
|
||||||
* @return float
|
* @return float
|
||||||
*/
|
*/
|
||||||
public function getBuyablePrice($options = null)
|
public function getBuyablePrice()
|
||||||
{
|
{
|
||||||
if (($price = $this->getAttribute('price'))) {
|
if (($price = $this->getAttribute('price'))) {
|
||||||
return $price;
|
return $price;
|
||||||
@@ -51,7 +51,7 @@ trait CanBeBought
|
|||||||
*
|
*
|
||||||
* @return float
|
* @return float
|
||||||
*/
|
*/
|
||||||
public function getBuyableWeight($options = null)
|
public function getBuyableWeight()
|
||||||
{
|
{
|
||||||
if (($weight = $this->getAttribute('weight'))) {
|
if (($weight = $this->getAttribute('weight'))) {
|
||||||
return $weight;
|
return $weight;
|
||||||
|
|||||||
Reference in New Issue
Block a user