mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-23 23:51:25 +00:00
Update BuyableProduct.php
This commit is contained in:
@@ -33,7 +33,7 @@ class BuyableProduct extends Model implements Buyable
|
|||||||
*
|
*
|
||||||
* @return int|string
|
* @return int|string
|
||||||
*/
|
*/
|
||||||
public function getBuyableIdentifier($options = null)
|
public function getBuyableIdentifier()
|
||||||
{
|
{
|
||||||
return $this->id;
|
return $this->id;
|
||||||
}
|
}
|
||||||
@@ -43,7 +43,7 @@ class BuyableProduct extends Model implements Buyable
|
|||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function getBuyableDescription($options = null)
|
public function getBuyableDescription() : ?string
|
||||||
{
|
{
|
||||||
return $this->name;
|
return $this->name;
|
||||||
}
|
}
|
||||||
@@ -53,7 +53,7 @@ class BuyableProduct extends Model implements Buyable
|
|||||||
*
|
*
|
||||||
* @return float
|
* @return float
|
||||||
*/
|
*/
|
||||||
public function getBuyablePrice($options = null)
|
public function getBuyablePrice()
|
||||||
{
|
{
|
||||||
return $this->price;
|
return $this->price;
|
||||||
}
|
}
|
||||||
@@ -63,7 +63,7 @@ class BuyableProduct extends Model implements Buyable
|
|||||||
*
|
*
|
||||||
* @return float
|
* @return float
|
||||||
*/
|
*/
|
||||||
public function getBuyableWeight($options = null)
|
public function getBuyableWeight()
|
||||||
{
|
{
|
||||||
return $this->weight;
|
return $this->weight;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user