- <?php
-
- namespace Lc\ShopBundle\Model;
-
- use Doctrine\ORM\Mapping as ORM;
- use Gedmo\Mapping\Annotation as Gedmo;
- use phpDocumentor\Reflection\Types\Integer;
-
- trait SortableTrait
- {
-
-
- protected $position = 0;
-
-
-
- public function getPosition(): float
- {
- return $this->position;
- }
-
-
-
- public function setPosition(float $position): self
- {
- $this->position = $position;
- return $this;
- }
- }
|