mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-23 23:51:25 +00:00
Update CanBeBought.php
This commit is contained in:
@@ -19,19 +19,17 @@ trait CanBeBought
|
|||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function getBuyableDescription()
|
public function getBuyableDescription() : ?string
|
||||||
{
|
{
|
||||||
if (($name = $this->getAttribute('name'))) {
|
if (($name = $this->getAttribute('name'))) {
|
||||||
return $name;
|
return $name;
|
||||||
}
|
} else if (($title = $this->getAttribute('title'))) {
|
||||||
|
|
||||||
if (($title = $this->getAttribute('title'))) {
|
|
||||||
return $title;
|
return $title;
|
||||||
}
|
} else if (($description = $this->getAttribute('description'))) {
|
||||||
|
|
||||||
if (($description = $this->getAttribute('description'))) {
|
|
||||||
return $description;
|
return $description;
|
||||||
}
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user