mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
221 lines
3.5 KiB
PHP
221 lines
3.5 KiB
PHP
<?php
|
|
|
|
use Chill\MainBundle\Entity\User;
|
|
use Chill\PersonBundle\Entity\Person;
|
|
use Chill\CustomFieldsBundle\Entity\CustomFieldsGroup;
|
|
|
|
/*
|
|
*
|
|
* Copyright (C) 2014, Champs Libres Cooperative SCRLFS, <http://www.champs-libres.coop>
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Affero General Public License as
|
|
* published by the Free Software Foundation, either version 3 of the
|
|
* License, or (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Affero General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
namespace Chill\ReportBundle\Entity;
|
|
|
|
/**
|
|
* Report
|
|
*/
|
|
class Report
|
|
{
|
|
/**
|
|
* @var integer
|
|
*/
|
|
private $id;
|
|
|
|
/**
|
|
* @var \User
|
|
*/
|
|
private $user;
|
|
|
|
/**
|
|
* @var \Person
|
|
*/
|
|
private $person;
|
|
|
|
/**
|
|
* @var \DateTime
|
|
*/
|
|
private $date;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
private $scope;
|
|
|
|
/**
|
|
* @var array
|
|
*/
|
|
private $cFData;
|
|
|
|
/**
|
|
* @var \CustomFieldsGroup
|
|
*/
|
|
private $cFGroup;
|
|
|
|
|
|
/**
|
|
* Get id
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
/**
|
|
* Set userr
|
|
*
|
|
* @param \User $user
|
|
*
|
|
* @return Report
|
|
*/
|
|
public function setUser($user)
|
|
{
|
|
$this->userr = $user;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get user
|
|
*
|
|
* @return \User
|
|
*/
|
|
public function getUser()
|
|
{
|
|
return $this->user;
|
|
}
|
|
|
|
/**
|
|
* Set person
|
|
*
|
|
* @param \Person $person
|
|
*
|
|
* @return Report
|
|
*/
|
|
public function setPerson($person)
|
|
{
|
|
$this->person = $person;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get person
|
|
*
|
|
* @return \Person
|
|
*/
|
|
public function getPerson()
|
|
{
|
|
return $this->person;
|
|
}
|
|
|
|
/**
|
|
* Set date
|
|
*
|
|
* @param \DateTime $date
|
|
*
|
|
* @return Report
|
|
*/
|
|
public function setDate($date)
|
|
{
|
|
$this->date = $date;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get date
|
|
*
|
|
* @return \DateTime
|
|
*/
|
|
public function getDate()
|
|
{
|
|
return $this->date;
|
|
}
|
|
|
|
/**
|
|
* Set scope
|
|
*
|
|
* @param string $scope
|
|
*
|
|
* @return Report
|
|
*/
|
|
public function setScope($scope)
|
|
{
|
|
$this->scope = $scope;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get scope
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getScope()
|
|
{
|
|
return $this->scope;
|
|
}
|
|
|
|
/**
|
|
* Set cFData
|
|
*
|
|
* @param array $cFData
|
|
*
|
|
* @return Report
|
|
*/
|
|
public function setCFData($cFData)
|
|
{
|
|
$this->cFData = $cFData;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get cFData
|
|
*
|
|
* @return array
|
|
*/
|
|
public function getCFData()
|
|
{
|
|
return $this->cFData;
|
|
}
|
|
|
|
/**
|
|
* Set cFGroup
|
|
*
|
|
* @param \CustomFieldsGroup $cFGroup
|
|
*
|
|
* @return Report
|
|
*/
|
|
public function setCFGroup($cFGroup)
|
|
{
|
|
$this->cFGroup = $cFGroup;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get cFGroup
|
|
*
|
|
* @return \CustomFieldsGroup
|
|
*/
|
|
public function getCFGroup()
|
|
{
|
|
return $this->cFGroup;
|
|
}
|
|
} |