src/Entity/UserActivity.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\UserActivityRepository")
  6.  */
  7. class UserActivity
  8. {
  9.     /**
  10.      * @ORM\Id
  11.      * @ORM\GeneratedValue
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="userActivities")
  17.      * @ORM\JoinColumn(nullable=false)
  18.      */
  19.     private $user;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity="App\Entity\Activity")
  22.      */
  23.     private $activity;
  24.     /**
  25.      * @ORM\Column(name="frequency", type="float", nullable=true)
  26.      *
  27.      */
  28.     private $frequency;
  29.     /**
  30.      * @return mixed
  31.      */
  32.     public function getId()
  33.     {
  34.         return $this->id;
  35.     }
  36.     /**
  37.      * @param mixed $id
  38.      */
  39.     public function setId($id)
  40.     {
  41.         $this->id $id;
  42.     }
  43.     /**
  44.      * @return mixed
  45.      */
  46.     public function getUser()
  47.     {
  48.         return $this->user;
  49.     }
  50.     /**
  51.      * @param mixed $profile
  52.      */
  53.     public function setUser($user)
  54.     {
  55.         $this->user $user;
  56.     }
  57.     /**
  58.      * @return mixed
  59.      */
  60.     public function getActivity()
  61.     {
  62.         return $this->activity;
  63.     }
  64.     /**
  65.      * @param mixed $activity
  66.      */
  67.     public function setActivity($activity)
  68.     {
  69.         $this->activity $activity;
  70.     }
  71.     /**
  72.      * @return mixed
  73.      */
  74.     public function getFrequency()
  75.     {
  76.         return $this->frequency;
  77.     }
  78.     /**
  79.      * @param mixed $frequency
  80.      */
  81.     public function setFrequency($frequency)
  82.     {
  83.         $this->frequency $frequency;
  84.     }
  85. }