<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\UserActivityRepository")
*/
class UserActivity
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="userActivities")
* @ORM\JoinColumn(nullable=false)
*/
private $user;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Activity")
*/
private $activity;
/**
* @ORM\Column(name="frequency", type="float", nullable=true)
*
*/
private $frequency;
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @param mixed $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return mixed
*/
public function getUser()
{
return $this->user;
}
/**
* @param mixed $profile
*/
public function setUser($user)
{
$this->user = $user;
}
/**
* @return mixed
*/
public function getActivity()
{
return $this->activity;
}
/**
* @param mixed $activity
*/
public function setActivity($activity)
{
$this->activity = $activity;
}
/**
* @return mixed
*/
public function getFrequency()
{
return $this->frequency;
}
/**
* @param mixed $frequency
*/
public function setFrequency($frequency)
{
$this->frequency = $frequency;
}
}