You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- <?php
-
- namespace Lc\SovBundle\Doctrine\Extension;
-
- use Doctrine\ORM\Mapping as ORM;
- use Gedmo\Mapping\Annotation as Gedmo;
-
-
- trait SortableTrait
- {
- /**
- * @var string
- * @ORM\Column(type="float")
- */
- protected $position = 0;
-
- /**
- * @return float
- */
- public function getPosition(): float
- {
- return $this->position;
- }
-
- /**
- * @param float $position
- * @return $this
- */
- public function setPosition(float $position): self
- {
- $this->position = $position;
- return $this;
- }
- }
|