<?php
namespace App\Ox\HoardBundle\Entity;
use Symfony\Component\Validator\Constraints as Assert;
use Gedmo\Mapping\Annotation as Gedmo;
use Doctrine\ORM\Mapping as ORM;
use JMS\Serializer\Annotation as JMS;
use App\Ox\HoardBundle\Entity\EntityBase;
use JsonSerializable;
/**
* Hoard
*
* @ORM\HasLifecycleCallbacks
* @ORM\Table(name="hoard", indexes={@ORM\Index(name="find_spot_location_detail", columns={"find_spot_location_detail_id"}), @ORM\Index(name="closing_reign1", columns={"closing_reign1_id"}), @ORM\Index(name="closing_reign2", columns={"closing_reign2_id"}), @ORM\Index(name="discovery_method", columns={"discovery_method_id"}), @ORM\Index(name="discovery_land_use", columns={"discovery_land_use_id"}), @ORM\Index(name="archaeology_recovery_method", columns={"archaeology_recovery_method_id"}), @ORM\Index(name="archaeology_site_context", columns={"archaeology_site_context_id"}), @ORM\Index(name="archaeology_period", columns={"archaeology_period_id"}), @ORM\Index(name="archaeology_end_period", columns={"archaeology_end_period_id"}), @ORM\Index(name="find_spot_rating", columns={"find_spot_rating_id"}), @ORM\Index(name="contextual_rating", columns={"contextual_rating_id"}), @ORM\Index(name="rating", columns={"rating_id"}), @ORM\Index(name="hide_what", columns={"hide_what_id"}), @ORM\Index(name="hide_from", columns={"hide_from_id"}), @ORM\Index(name="created", columns={"created_by"}), @ORM\Index(name="modified", columns={"modified_by"})})
* @ORM\Entity
* @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=true)
* @JMS\ExclusionPolicy("all")
*/
class Hoard extends EntityBase implements JsonSerializable
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
* @JMS\Expose
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="find_spot_name", type="string", length=255, nullable=true)
* @JMS\Expose
*/
private $findSpotName;
/**
* @var string
*
* @ORM\Column(name="find_spot_other_names", type="string", length=255, nullable=true)
* @JMS\Expose
*/
private $findSpotOtherNames;
/**
* @var string
*
* @ORM\Column(name="address", type="string", length=255, nullable=true)
* @JMS\Expose
*/
private $address;
/**
* @var string
*
* @ORM\Column(name="city", type="string", length=255, nullable=true)
* @JMS\Expose
*/
private $city;
/**
* @var string
*
* @ORM\Column(name="county", type="string", length=255, nullable=true)
* @JMS\Expose
*/
private $county;
/**
* @var string
*
* @ORM\Column(name="region", type="string", length=255, nullable=true)
* @JMS\Expose
*/
private $region;
/**
* @var float
*
* @ORM\Column(name="find_spot_latitude", type="float", precision=10, scale=0, nullable=true)
* @JMS\Expose
*/
private $findSpotLatitude;
/**
* @var float
*
* @ORM\Column(name="find_spot_longitude", type="float", precision=10, scale=0, nullable=true)
* @JMS\Expose
*/
private $findSpotLongitude;
/**
* @var float
*
* @ORM\Column(name="find_spot_altitude", type="float", precision=10, scale=0, nullable=true)
* @JMS\Expose
*/
private $findSpotAltitude;
/**
* @var string
*
* @ORM\Column(name="find_spot_comment", type="text", nullable=true)
* @JMS\Expose
*/
private $findSpotComment;
/**
* @var integer
*
* @ORM\Column(name="discovery_day1", type="integer", nullable=true)
* @JMS\Expose
*/
private $discoveryDay1;
/**
* @var integer
*
* @ORM\Column(name="discovery_month1", type="integer", nullable=true)
* @JMS\Expose
*/
private $discoveryMonth1;
/**
* @var integer
*
* @ORM\Column(name="discovery_year1", type="integer", nullable=true)
* @JMS\Expose
*/
private $discoveryYear1;
/**
* @var integer
*
* @ORM\Column(name="discovery_day2", type="integer", nullable=true)
* @JMS\Expose
*/
private $discoveryDay2;
/**
* @var integer
*
* @ORM\Column(name="discovery_month2", type="integer", nullable=true)
* @JMS\Expose
*/
private $discoveryMonth2;
/**
* @var integer
*
* @ORM\Column(name="discovery_year2", type="integer", nullable=true)
* @JMS\Expose
*/
private $discoveryYear2;
/**
* @var integer
*
* @ORM\Column(name="opening_year1", type="integer", nullable=true)
* @JMS\Expose
*/
private $openingYear1;
/**
* @var integer
*
* @ORM\Column(name="opening_year2", type="integer", nullable=true)
* @JMS\Expose
*/
private $openingYear2;
/**
* @var integer
*
* @ORM\Column(name="terminal_year1", type="integer", nullable=true)
* @JMS\Expose
*/
private $terminalYear1;
/**
* @var integer
*
* @ORM\Column(name="terminal_year2", type="integer", nullable=true)
* @JMS\Expose
*/
private $terminalYear2;
/**
* @var string
*
* @ORM\Column(name="reference_string", type="text", nullable=true)
* @JMS\Expose
*/
private $reference_string;
/**
* @var \App\Ox\HoardBundle\Entity\CoinLevelData
*
* @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\CoinLevelData")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="coin_level_data_id", referencedColumnName="id")
* })
* @JMS\Expose
*/
private $coinLevelData;
/**
* @var string
*
* @ORM\Column(name="discovery_depth", type="string", length=255, nullable=true)
* @JMS\Expose
*/
private $discoveryDepth;
/**
* @var string
*
* @ORM\Column(name="owner", type="string", length=255, nullable=true)
* @JMS\Expose
*/
private $owner;
/**
* @var string
*
* @ORM\Column(name="finder", type="string", length=255, nullable=true)
* @JMS\Expose
*/
private $finder;
/**
* @var string
*
* @ORM\Column(name="discovery_comment", type="text", nullable=true)
* @JMS\Expose
*/
private $discoveryComment;
/**
* @var integer
*
* @ORM\Column(name="archaeology_start_year", type="integer", nullable=true)
* @JMS\Expose
*/
private $archaeologyStartYear;
/**
* @var integer
*
* @ORM\Column(name="archaeology_end_year", type="integer", nullable=true)
* @JMS\Expose
*/
private $archaeologyEndYear;
/**
* @var string
*
* @ORM\Column(name="archaeology_natural_features", type="string", length=255, nullable=true)
* @JMS\Expose
*/
private $archaeologyNaturalFeatures;
/**
* @var string
*
* @ORM\Column(name="archaeology_site_comment", type="text", nullable=true)
* @JMS\Expose
*/
private $archaeologySiteComment;
/**
* @var integer
*
* @ORM\Column(name="archaeology_context_date1", type="integer", nullable=true)
* @JMS\Expose
*/
private $archaeologyContextDate1;
/**
* @var integer
*
* @ORM\Column(name="archaeology_context_date2", type="integer", nullable=true)
* @JMS\Expose
*/
private $archaeologyContextDate2;
/**
* @var string
*
* @ORM\Column(name="archaeology_associated_features", type="text", nullable=true)
* @JMS\Expose
*/
private $archaeologyAssociatedFeatures;
/**
* @var string
*
* @ORM\Column(name="rating_comment", type="text", nullable=true)
* @JMS\Expose
*/
private $ratingComment;
/**
* @var boolean
*
* @ORM\Column(name="validated_by_user", type="boolean", nullable=true)
* @JMS\Expose
*/
private $validatedByUser;
/**
* @var boolean
*
* @ORM\Column(name="validated_by_admin", type="boolean", nullable=true)
*/
private $validatedByAdmin;
/**
* @var boolean
*
* @ORM\Column(name="coin_data_validated_by_user", type="boolean", nullable=true)
* @JMS\Expose
*/
private $coinDataValidatedByUser;
/**
* @var boolean
*
* @ORM\Column(name="coin_data_validated_by_admin", type="boolean", nullable=true)
*/
private $coinDataValidatedByAdmin;
/**
* @var boolean
*
* @ORM\Column(name="deleted", type="boolean", nullable=true)
*/
private $deleted;
/**
* @ORM\Column(name="deletedAt", type="datetime", nullable=true)
*/
private $deletedAt;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\UserHoard", mappedBy="hoard")
*/
private $accessibleUsers;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\Coin", mappedBy="hoard")
*/
private $coins;
/**
* @var \App\Ox\HoardBundle\Entity\HoardCoinCount
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\HoardCoinCount", mappedBy="hoard")
*/
private $coinCount;
/**
* @var \App\Ox\HoardBundle\Entity\HoardNameSimple
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\HoardNameSimple", mappedBy="hoard")
*/
private $nameSimple;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\Container", mappedBy="hoard")
*/
private $containers;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\HoardImage", mappedBy="hoard")
*/
private $hoardImages;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\HoardReference", mappedBy="hoard")
*/
private $hoardReferences;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\HObject", mappedBy="hoard")
*/
private $objects;
/**
* @var \App\Ox\HoardBundle\Entity\HoardType
*
* @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\HoardType", inversedBy="hoards")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="hoard_type_id", referencedColumnName="id")
* })
* @JMS\Expose
*/
private $hoardType;
/**
*@var \Doctrine\Common\Collections\Collection
*
*@ORM\ManyToMany(targetEntity="App\Ox\HoardBundle\Entity\Country")
*@ORM\JoinTable(name="hoard_country",
* joinColumns={@ORM\JoinColumn(name="hoard_id", referencedColumnName="id")},
* inverseJoinColumns={@ORM\JoinColumn(name="country_id", referencedColumnName="id")}
*)
*@Assert\Count(min = "1")
*@JMS\Expose
*/
private $countries;
/**
* @var \App\Ox\HoardBundle\Entity\Province
*
* @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\Province", inversedBy="hoards")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="province_id", referencedColumnName="id")
* })
* @JMS\Expose
*/
private $province;
/**
* @var \App\Ox\HoardBundle\Entity\FindSpotLocationDetail
*
* @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\FindSpotLocationDetail", inversedBy="hoards")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="find_spot_location_detail_id", referencedColumnName="id")
* })
* @JMS\Expose
*/
private $findSpotLocationDetail;
/**
* @var \App\Ox\HoardBundle\Entity\AncientPlace
*
* @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\AncientPlace", inversedBy="hoards")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="ancient_place_id", referencedColumnName="id")
* })
* @JMS\Expose
*/
private $ancientPlace;
/**
* @var \App\Ox\HoardBundle\Entity\Reign
*
* @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\Reign")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="closing_reign1_id", referencedColumnName="id")
* })
* @JMS\Expose
*/
private $closingReign1;
/**
* @var \App\Ox\HoardBundle\Entity\Reign
*
* @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\Reign")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="closing_reign2_id", referencedColumnName="id")
* })
* @JMS\Expose
*/
private $closingReign2;
/**
* @var \App\Ox\HoardBundle\Entity\DiscoveryMethod
*
* @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\DiscoveryMethod", inversedBy="hoards")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="discovery_method_id", referencedColumnName="id")
* })
* @JMS\Expose
*/
private $discoveryMethod;
/**
* @var \App\Ox\HoardBundle\Entity\DiscoveryLandUse
*
* @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\DiscoveryLandUse", inversedBy="hoards")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="discovery_land_use_id", referencedColumnName="id")
* })
* @JMS\Expose
*/
private $discoveryLandUse;
/**
* @var \App\Ox\HoardBundle\Entity\ArchaeologyRecoveryMethod
*
* @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\ArchaeologyRecoveryMethod", inversedBy="hoards")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="archaeology_recovery_method_id", referencedColumnName="id")
* })
* @JMS\Expose
*/
private $archaeologyRecoveryMethod;
/**
* @var \App\Ox\HoardBundle\Entity\ArchaeologySiteContext
*
* @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\ArchaeologySiteContext", inversedBy="hoards")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="archaeology_site_context_id", referencedColumnName="id")
* })
* @JMS\Expose
*/
private $archaeologySiteContext;
/**
*@var \Doctrine\Common\Collections\Collection
*
*@ORM\ManyToMany(targetEntity="App\Ox\HoardBundle\Entity\ArchaeologySiteContextDetail")
*@ORM\JoinTable(name="hoard_archaeology_site_context_detail",
* joinColumns={@ORM\JoinColumn(name="hoard_id", referencedColumnName="id")},
* inverseJoinColumns={@ORM\JoinColumn(name="archaeology_site_context_detail_id", referencedColumnName="id")}
*)
*@JMS\Expose
*/
private $archaeologySiteContextDetails;
/**
* @var \App\Ox\HoardBundle\Entity\ArchaeologyPeriod
*
* @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\ArchaeologyPeriod")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="archaeology_period_id", referencedColumnName="id")
* })
* @JMS\Expose
*/
private $archaeologyPeriod;
/**
*@var \Doctrine\Common\Collections\Collection
*
*@ORM\ManyToMany(targetEntity="App\Ox\HoardBundle\Entity\ArchaeologyContextNature")
*@ORM\JoinTable(name="hoard_archaeology_context_nature",
* joinColumns={@ORM\JoinColumn(name="hoard_id", referencedColumnName="id")},
* inverseJoinColumns={@ORM\JoinColumn(name="archaeology_context_nature_id", referencedColumnName="id")}
*)
*@JMS\Expose
*/
private $archaeologyContextNatures;
/**
* @var \App\Ox\HoardBundle\Entity\ArchaeologyPeriod
*
* @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\ArchaeologyPeriod")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="archaeology_end_period_id", referencedColumnName="id")
* })
* @JMS\Expose
*/
private $archaeologyEndPeriod;
/**
* @var \App\Ox\HoardBundle\Entity\Rating
*
* @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\Rating")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="find_spot_rating_id", referencedColumnName="id")
* })
* @JMS\Expose
*/
private $findSpotRating;
/**
* @var \App\Ox\HoardBundle\Entity\Rating
*
* @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\Rating")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="contextual_rating_id", referencedColumnName="id")
* })
* @JMS\Expose
*/
private $contextualRating;
/**
* @var \App\Ox\HoardBundle\Entity\Rating
*
* @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\Rating")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="rating_id", referencedColumnName="id")
* })
* @JMS\Expose
*/
private $rating;
/**
* @var \App\Ox\HoardBundle\Entity\HideWhat
*
* @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\HideWhat")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="hide_what_id", referencedColumnName="id")
* })
* @JMS\Expose
*/
private $hideWhat;
/**
* @var boolean
*
* @ORM\Column(name="hide_location", type="boolean", nullable=true)
* @JMS\Expose
*/
private $hideLocation;
/**
* @var \App\Ox\HoardBundle\Entity\HideFrom
*
* @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\HideFrom")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="hide_from_id", referencedColumnName="id")
* })
* @JMS\Expose
*/
private $hideFrom;
/**
* @var boolean
*
* @ORM\Column(name="hide_city", type="boolean", nullable=true)
* @JMS\Expose
*/
private $hideCity;
/**
* @var boolean
*
* @ORM\Column(name="hide_county", type="boolean", nullable=true)
* @JMS\Expose
*/
private $hideCounty;
/**
* @var boolean
*
* @ORM\Column(name="hide_finder", type="boolean", nullable=true)
* @JMS\Expose
*/
private $hideFinder;
/**
* @var \App\Ox\HoardBundle\Entity\User
*
* @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\User", inversedBy="hoardsCreated")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="created_by", referencedColumnName="id")
* })
*/
protected $created;
/**
* @var \App\Ox\HoardBundle\Entity\User
*
* @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\User", inversedBy="hoardsLastModified")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="modified_by", referencedColumnName="id")
* })
*/
protected $modified;
/**
* @var string
*
* @ORM\Column(name="credit", type="text", nullable=true)
* @JMS\Expose
*/
private $credit;
/**
* @var integer
*
* @ORM\Column(name="redirect_to_hoard", type="integer", nullable=true)
* @JMS\Expose
*/
private $redirectToHoard;
/**
* @var string
*
* @ORM\Column(name="internal_note", type="text", nullable=true)
*/
protected $internalNote;
/**
* @var string
*
* @JMS\Expose
*/
private $closingReign1Date;
/**
* @var string
*
* @JMS\Expose
*/
private $closingReign2Date;
/**
* @var string
*
* @JMS\Expose
*/
private $closingReign1Label;
/**
* @var string
*
* @JMS\Expose
*/
private $closingReign2Label;
/**
* @var string
*
* @JMS\Expose
*/
private $archaeologySiteContextName;
/**
* @var integer
*
* @JMS\Expose
*/
private $archaeologySiteContextSortOrder;
/**
* @var array
*
* @JMS\Expose
*/
private $hoardCoins;
/**
* Constructor
*/
public function __construct()
{
$this->accessibleUsers = new \Doctrine\Common\Collections\ArrayCollection();
$this->coins = new \Doctrine\Common\Collections\ArrayCollection();
$this->containers = new \Doctrine\Common\Collections\ArrayCollection();
$this->countries = new \Doctrine\Common\Collections\ArrayCollection();
$this->hoardImages = new \Doctrine\Common\Collections\ArrayCollection();
$this->hoardReferences = new \Doctrine\Common\Collections\ArrayCollection();
$this->objects = new \Doctrine\Common\Collections\ArrayCollection();
$this->lol2 = '';
}
/**
* @return string
*/
public function __toString()
{
if (is_null($this->findSpotName)) {
return '';
} else return $this->findSpotName;
}
public function jsonSerialize()
{
$data = array(
'id' => $this->id,
'findSpotName' => $this->findSpotName,
'address' => $this->address
);
if($this->hoardType) {
$data['hoardType'] = $this->hoardType->__toString();
}
if($this->discoveryLandUse) {
$data['discoveryLandUse'] = $this->discoveryLandUse->__toString();
}
return $data;
}
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set findSpotName
*
* @param integer $id
* @return Hoard
*/
public function setId($id)
{
$this->id = $id;
return $this;
}
/**
* Set findSpotName
*
* @param string $findSpotName
* @return Hoard
*/
public function setFindSpotName($findSpotName)
{
$this->findSpotName = $findSpotName;
return $this;
}
/**
* Get findSpotName
*
* @return string
*/
public function getFindSpotName()
{
return $this->findSpotName;
}
/**
* Set findSpotOtherNames
*
* @param string $findSpotOtherNames
* @return Hoard
*/
public function setFindSpotOtherNames($findSpotOtherNames)
{
$this->findSpotOtherNames = $findSpotOtherNames;
return $this;
}
/**
* Get findSpotOtherNames
*
* @return string
*/
public function getFindSpotOtherNames()
{
return $this->findSpotOtherNames;
}
/**
* Set address
*
* @param string $address
* @return Hoard
*/
public function setAddress($address)
{
$this->address = $address;
return $this;
}
/**
* Get address
*
* @return string
*/
public function getAddress()
{
return $this->address;
}
/**
* Set city
*
* @param string $city
* @return Hoard
*/
public function setCity($city)
{
$this->city = $city;
return $this;
}
/**
* Get city
*
* @return string
*/
public function getCity()
{
return $this->city;
}
/**
* Set county
*
* @param string $county
* @return Hoard
*/
public function setCounty($county)
{
$this->county = $county;
return $this;
}
/**
* Get county
*
* @return string
*/
public function getCounty()
{
return $this->county;
}
/**
* Set region
*
* @param string $region
* @return Hoard
*/
public function setRegion($region)
{
$this->region = $region;
return $this;
}
/**
* Get region
*
* @return string
*/
public function getRegion()
{
return $this->region;
}
/**
* Set findSpotLatitude
*
* @param float $findSpotLatitude
* @return Hoard
*/
public function setFindSpotLatitude($findSpotLatitude)
{
$this->findSpotLatitude = $findSpotLatitude;
return $this;
}
/**
* Get findSpotLatitude
*
* @return float
*/
public function getFindSpotLatitude()
{
return $this->findSpotLatitude;
}
/**
* Set findSpotLongitude
*
* @param float $findSpotLongitude
* @return Hoard
*/
public function setFindSpotLongitude($findSpotLongitude)
{
$this->findSpotLongitude = $findSpotLongitude;
return $this;
}
/**
* Get findSpotLongitude
*
* @return float
*/
public function getFindSpotLongitude()
{
return $this->findSpotLongitude;
}
/**
* Set findSpotAltitude
*
* @param float $findSpotAltitude
* @return Hoard
*/
public function setFindSpotAltitude($findSpotAltitude)
{
$this->findSpotAltitude = $findSpotAltitude;
return $this;
}
/**
* Get findSpotAltitude
*
* @return float
*/
public function getFindSpotAltitude()
{
return $this->findSpotAltitude;
}
/**
* Set findSpotComment
*
* @param string $findSpotComment
* @return Hoard
*/
public function setFindSpotComment($findSpotComment)
{
$this->findSpotComment = $findSpotComment;
return $this;
}
/**
* Get findSpotComment
*
* @return string
*/
public function getFindSpotComment()
{
return $this->findSpotComment;
}
/**
* Set discoveryDay1
*
* @param integer $discoveryDay1
* @return Hoard
*/
public function setDiscoveryDay1($discoveryDay1)
{
$this->discoveryDay1 = $discoveryDay1;
return $this;
}
/**
* Get discoveryDay1
*
* @return integer
*/
public function getDiscoveryDay1()
{
return $this->discoveryDay1;
}
/**
* Set discoveryMonth1
*
* @param integer $discoveryMonth1
* @return Hoard
*/
public function setDiscoveryMonth1($discoveryMonth1)
{
$this->discoveryMonth1 = $discoveryMonth1;
return $this;
}
/**
* Get discoveryMonth1
*
* @return integer
*/
public function getDiscoveryMonth1()
{
return $this->discoveryMonth1;
}
/**
* Set discoveryYear1
*
* @param integer $discoveryYear1
* @return Hoard
*/
public function setDiscoveryYear1($discoveryYear1)
{
$this->discoveryYear1 = $discoveryYear1;
return $this;
}
/**
* Get discoveryYear1
*
* @return integer
*/
public function getDiscoveryYear1()
{
return $this->discoveryYear1;
}
/**
* Set discoveryDay2
*
* @param integer $discoveryDay2
* @return Hoard
*/
public function setDiscoveryDay2($discoveryDay2)
{
$this->discoveryDay2 = $discoveryDay2;
return $this;
}
/**
* Get discoveryDay2
*
* @return integer
*/
public function getDiscoveryDay2()
{
return $this->discoveryDay2;
}
/**
* Set discoveryMonth2
*
* @param integer $discoveryMonth2
* @return Hoard
*/
public function setDiscoveryMonth2($discoveryMonth2)
{
$this->discoveryMonth2 = $discoveryMonth2;
return $this;
}
/**
* Get discoveryMonth2
*
* @return integer
*/
public function getDiscoveryMonth2()
{
return $this->discoveryMonth2;
}
/**
* Set discoveryYear2
*
* @param integer $discoveryYear2
* @return Hoard
*/
public function setDiscoveryYear2($discoveryYear2)
{
$this->discoveryYear2 = $discoveryYear2;
return $this;
}
/**
* Get discoveryYear2
*
* @return integer
*/
public function getDiscoveryYear2()
{
return $this->discoveryYear2;
}
/**
* Set openingYear1
*
* @param integer $openingYear1
* @return Hoard
*/
public function setOpeningYear1($openingYear1)
{
$this->openingYear1 = $openingYear1;
return $this;
}
/**
* Get openingYear1
*
* @return integer
*/
public function getOpeningYear1()
{
return $this->openingYear1;
}
/**
* Set openingYear2
*
* @param integer $openingYear2
* @return Hoard
*/
public function setOpeningYear2($openingYear2)
{
$this->openingYear2 = $openingYear2;
return $this;
}
/**
* Get openingYear2
*
* @return integer
*/
public function getOpeningYear2()
{
return $this->openingYear2;
}
/**
* Set terminalYear1
*
* @param integer $terminalYear1
* @return Hoard
*/
public function setTerminalYear1($terminalYear1)
{
$this->terminalYear1 = $terminalYear1;
return $this;
}
/**
* Get terminalYear1
*
* @return integer
*/
public function getTerminalYear1()
{
return $this->terminalYear1;
}
/**
* Set terminalYear2
*
* @param integer $terminalYear2
* @return Hoard
*/
public function setTerminalYear2($terminalYear2)
{
$this->terminalYear2 = $terminalYear2;
return $this;
}
/**
* Get terminalYear2
*
* @return integer
*/
public function getTerminalYear2()
{
return $this->terminalYear2;
}
/**
* Set reference_string
*
* @param string $reference_string
* @return Hoard
*/
public function setReferenceString($reference_string)
{
$this->reference_string = $reference_string;
return $this;
}
/**
* Get reference_string
*
* @return string
*/
public function getReferenceString()
{
return $this->reference_string;
}
/**
* Set coinLevelData
*
* @param \App\Ox\HoardBundle\Entity\CoinLevelData $coinLevelData;
* @return Hoard
*/
public function setCoinLevelData(CoinLevelData $coinLevelData = null)
{
$this->coinLevelData = $coinLevelData;
return $this;
}
/**
* Get coinLevelData
*
* @return \App\Ox\HoardBundle\Entity\CoinLevelData
*/
public function getCoinLevelData()
{
return $this->coinLevelData;
}
/**
* Set discoveryDepth
*
* @param string $discoveryDepth
* @return Hoard
*/
public function setDiscoveryDepth($discoveryDepth)
{
$this->discoveryDepth = $discoveryDepth;
return $this;
}
/**
* Get discoveryDepth
*
* @return string
*/
public function getDiscoveryDepth()
{
return $this->discoveryDepth;
}
/**
* Set owner
*
* @param string $owner
* @return Hoard
*/
public function setOwner($owner)
{
$this->owner = $owner;
return $this;
}
/**
* Get owner
*
* @return string
*/
public function getOwner()
{
return $this->owner;
}
/**
* Set finder
*
* @param string $finder
* @return Hoard
*/
public function setFinder($finder)
{
$this->finder = $finder;
return $this;
}
/**
* Get finder
*
* @return string
*/
public function getFinder()
{
return $this->finder;
}
/**
* Set discoveryComment
*
* @param string $discoveryComment
* @return Hoard
*/
public function setDiscoveryComment($discoveryComment)
{
$this->discoveryComment = $discoveryComment;
return $this;
}
/**
* Get discoveryComment
*
* @return string
*/
public function getDiscoveryComment()
{
return $this->discoveryComment;
}
/**
* Set archaeologyStartYear
*
* @param integer $archaeologyStartYear
* @return Hoard
*/
public function setArchaeologyStartYear($archaeologyStartYear)
{
$this->archaeologyStartYear = $archaeologyStartYear;
return $this;
}
/**
* Get archaeologyStartYear
*
* @return integer
*/
public function getArchaeologyStartYear()
{
return $this->archaeologyStartYear;
}
/**
* Set archaeologyEndYear
*
* @param integer $archaeologyEndYear
* @return Hoard
*/
public function setArchaeologyEndYear($archaeologyEndYear)
{
$this->archaeologyEndYear = $archaeologyEndYear;
return $this;
}
/**
* Get archaeologyEndYear
*
* @return integer
*/
public function getArchaeologyEndYear()
{
return $this->archaeologyEndYear;
}
/**
* Set archaeologyNaturalFeatures
*
* @param string $archaeologyNaturalFeatures
* @return Hoard
*/
public function setArchaeologyNaturalFeatures($archaeologyNaturalFeatures)
{
$this->archaeologyNaturalFeatures = $archaeologyNaturalFeatures;
return $this;
}
/**
* Get archaeologyNaturalFeatures
*
* @return string
*/
public function getArchaeologyNaturalFeatures()
{
return $this->archaeologyNaturalFeatures;
}
/**
* Set archaeologySiteComment
*
* @param string $archaeologySiteComment
* @return Hoard
*/
public function setArchaeologySiteComment($archaeologySiteComment)
{
$this->archaeologySiteComment = $archaeologySiteComment;
return $this;
}
/**
* Get archaeologySiteComment
*
* @return string
*/
public function getArchaeologySiteComment()
{
return $this->archaeologySiteComment;
}
/**
* Set archaeologyContextDate1
*
* @param integer $archaeologyContextDate1
* @return Hoard
*/
public function setArchaeologyContextDate1($archaeologyContextDate1)
{
$this->archaeologyContextDate1 = $archaeologyContextDate1;
return $this;
}
/**
* Get archaeologyContextDate1
*
* @return integer
*/
public function getArchaeologyContextDate1()
{
return $this->archaeologyContextDate1;
}
/**
* Set archaeologyContextDate2
*
* @param integer $archaeologyContextDate2
* @return Hoard
*/
public function setArchaeologyContextDate2($archaeologyContextDate2)
{
$this->archaeologyContextDate2 = $archaeologyContextDate2;
return $this;
}
/**
* Get archaeologyContextDate2
*
* @return integer
*/
public function getArchaeologyContextDate2()
{
return $this->archaeologyContextDate2;
}
/**
* Set archaeologyAssociatedFeatures
*
* @param string $archaeologyAssociatedFeatures
* @return Hoard
*/
public function setArchaeologyAssociatedFeatures($archaeologyAssociatedFeatures)
{
$this->archaeologyAssociatedFeatures = $archaeologyAssociatedFeatures;
return $this;
}
/**
* Get archaeologyAssociatedFeatures
*
* @return string
*/
public function getArchaeologyAssociatedFeatures()
{
return $this->archaeologyAssociatedFeatures;
}
/**
* Set ratingComment
*
* @param string $ratingComment
* @return Hoard
*/
public function setRatingComment($ratingComment)
{
$this->ratingComment = $ratingComment;
return $this;
}
/**
* Get ratingComment
*
* @return string
*/
public function getRatingComment()
{
return $this->ratingComment;
}
/**
* Set validatedByUser
*
* @param boolean $validatedByUser
* @return Hoard
*/
public function setValidatedByUser($validatedByUser)
{
$this->validatedByUser = $validatedByUser;
return $this;
}
/**
* Get validatedByUser
*
* @return boolean
*/
public function getValidatedByUser()
{
return $this->validatedByUser;
}
/**
* Set validatedByAdmin
*
* @param boolean $validatedByAdmin
* @return Hoard
*/
public function setValidatedByAdmin($validatedByAdmin)
{
$this->validatedByAdmin = $validatedByAdmin;
return $this;
}
/**
* Get validatedByAdmin
*
* @return boolean
*/
public function getValidatedByAdmin()
{
return $this->validatedByAdmin;
}
/**
* Set coinDataValidatedByUser
*
* @param boolean $coinDataValidatedByUser
* @return Hoard
*/
public function setCoinDataValidatedByUser($coinDataValidatedByUser)
{
$this->coinDataValidatedByUser = $coinDataValidatedByUser;
return $this;
}
/**
* Get coinDataValidatedByUser
*
* @return boolean
*/
public function getCoinDataValidatedByUser()
{
return $this->coinDataValidatedByUser;
}
/**
* Set coinDataValidatedByAdmin
*
* @param boolean $coinDataValidatedByAdmin
* @return Hoard
*/
public function setCoinDataValidatedByAdmin($coinDataValidatedByAdmin)
{
$this->coinDataValidatedByAdmin = $coinDataValidatedByAdmin;
return $this;
}
/**
* Get coinDataValidatedByAdmin
*
* @return boolean
*/
public function getCoinDataValidatedByAdmin()
{
return $this->coinDataValidatedByAdmin;
}
/**
* Set deleted
*
* @param boolean $deleted
* @return Hoard
*/
public function setDeleted($deleted)
{
$this->deleted = $deleted;
return $this;
}
/**
* Get deleted
*
* @return boolean
*/
public function getDeleted()
{
return $this->deleted;
}
/**
* Set deleted
*
* @param boolean $deletedAt
* @return Hoard
*/
public function setDeletedAt($deletedAt)
{
$this->deletedAt = $deletedAt;
if (!$deletedAt) {
$this->setDeleted(null);
}
return $this;
}
/**
* Get deletedAt
*
* @return datetime
*/
public function getDeletedAt()
{
return $this->deletedAt;
}
/**
* Add accessibleUsers
*
* @param \App\Ox\HoardBundle\Entity\UserHoard $accessibleUsers
* @return Hoard
*/
public function addAccessibleUser(UserHoard $accessibleUsers)
{
$this->accessibleUsers[] = $accessibleUsers;
return $this;
}
/**
* Remove accessibleUsers
*
* @param \App\Ox\HoardBundle\Entity\UserHoard $accessibleUsers
*/
public function removeAccessibleUser(UserHoard $accessibleUsers)
{
$this->accessibleUsers->removeElement($accessibleUsers);
}
/**
* Get accessibleUsers
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getAccessibleUsers()
{
return $this->accessibleUsers;
}
/**
* Add coins
*
* @param \App\Ox\HoardBundle\Entity\Coin $coins
* @return Hoard
*/
public function addCoin(Coin $coins)
{
$this->coins[] = $coins;
return $this;
}
/**
* Remove coins
*
* @param \App\Ox\HoardBundle\Entity\Coin $coins
*/
public function removeCoin(Coin $coins)
{
$this->coins->removeElement($coins);
}
/**
* Get coins
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getCoins()
{
return $this->coins;
}
/**
* Set coinCount
*
* @param integer $coinCount
* @return Hoard
*/
public function setCoinCount($coinCount)
{
$this->coinCount = $coinCount;
return $this;
}
/**
* Get coinCount
*
* @return integer
*/
public function getCoinCount()
{
return $this->coinCount;
}
/**
* Set nameSimple
*
* @param integer $nameSimple
* @return Hoard
*/
public function setNameSimple($nameSimple)
{
$this->nameSimple = $nameSimple;
return $this;
}
/**
* Get nameSimple
*
* @return string
*/
public function getNameSimple()
{
return $this->nameSimple;
}
/**
* Add containers
*
* @param \App\Ox\HoardBundle\Entity\Container $containers
* @return Hoard
*/
public function addContainer(Container $containers)
{
$this->containers[] = $containers;
return $this;
}
/**
* Remove containers
*
* @param \App\Ox\HoardBundle\Entity\Container $containers
*/
public function removeContainer(Container $containers)
{
$this->containers->removeElement($containers);
}
/**
* Get containers
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getContainers()
{
return $this->containers;
}
/**
* Add hoardImages
*
* @param \App\Ox\HoardBundle\Entity\HoardImage $hoardImage
* @return Hoard
*/
public function addHoardImage(HoardImage $hoardImage)
{
$hoardImage->setHoard($this);
$this->hoardImages[] = $hoardImage;
return $this;
}
/**
* Remove hoardImages
*
* @param \App\Ox\HoardBundle\Entity\HoardImage $hoardImage
*/
public function removeHoardImage(HoardImage $hoardImage)
{
$this->hoardImages->removeElement($hoardImage);
}
/**
* Get hoardImages
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getHoardImages()
{
return $this->hoardImages;
}
/**
* Add hoardReferences
*
* @param \App\Ox\HoardBundle\Entity\HoardReference $hoardReferences
* @return Hoard
*/
public function addHoardReference(HoardReference $hoardReferences)
{
$this->hoardReferences[] = $hoardReferences;
return $this;
}
/**
* Remove hoardReferences
*
* @param \App\Ox\HoardBundle\Entity\HoardReference $hoardReferences
*/
public function removeHoardReference(HoardReference $hoardReferences)
{
$this->hoardReferences->removeElement($hoardReferences);
}
/**
* Get hoardReferences
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getHoardReferences()
{
return $this->hoardReferences;
}
/**
* Add objects
*
* @param \App\Ox\HoardBundle\Entity\HObject $objects
* @return Hoard
*/
public function addObject(HObject $objects)
{
$this->objects[] = $objects;
return $this;
}
/**
* Remove objects
*
* @param \App\Ox\HoardBundle\Entity\HObject $objects
*/
public function removeObject(HObject $objects)
{
$this->objects->removeElement($objects);
}
/**
* Get objects
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getObjects()
{
return $this->objects;
}
/**
* Set hoardType
*
* @param \App\Ox\HoardBundle\Entity\HoardType $hoardType
* @return Hoard
*/
public function setHoardType(HoardType $hoardType = null)
{
$this->hoardType = $hoardType;
return $this;
}
/**
* Get hoardType
*
* @return \App\Ox\HoardBundle\Entity\HoardType
*/
public function getHoardType()
{
return $this->hoardType;
}
/**
* Set province
*
* @param \App\Ox\HoardBundle\Entity\Province $province
* @return Hoard
*/
public function setProvince(Province $province = null)
{
$this->province = $province;
return $this;
}
/**
* Get province
*
* @return \App\Ox\HoardBundle\Entity\Province
*/
public function getProvince()
{
return $this->province;
}
/**
* Set findSpotLocationDetail
*
* @param \App\Ox\HoardBundle\Entity\FindSpotLocationDetail $findSpotLocationDetail
* @return Hoard
*/
public function setFindSpotLocationDetail(FindSpotLocationDetail $findSpotLocationDetail = null)
{
$this->findSpotLocationDetail = $findSpotLocationDetail;
return $this;
}
/**
* Get findSpotLocationDetail
*
* @return \App\Ox\HoardBundle\Entity\FindSpotLocationDetail
*/
public function getFindSpotLocationDetail()
{
return $this->findSpotLocationDetail;
}
/**
* Set ancientPlace
*
* @param \App\Ox\HoardBundle\Entity\AncientPlace $ancientPlace
* @return Hoard
*/
public function setAncientPlace(AncientPlace $ancientPlace = null)
{
$this->ancientPlace = $ancientPlace;
return $this;
}
/**
* Get ancientPlace
*
* @return \App\Ox\HoardBundle\Entity\AncientPlace
*/
public function getAncientPlace()
{
return $this->ancientPlace;
}
/**
* Set closingReign1
*
* @param \App\Ox\HoardBundle\Entity\Reign $closingReign1
* @return Hoard
*/
public function setClosingReign1(Reign $closingReign1 = null)
{
$this->closingReign1 = $closingReign1;
return $this;
}
/**
* Get closingReign1
*
* @return \App\Ox\HoardBundle\Entity\Reign
*/
public function getClosingReign1()
{
return $this->closingReign1;
}
/**
* Set closingReign2
*
* @param \App\Ox\HoardBundle\Entity\Reign $closingReign2
* @return Hoard
*/
public function setClosingReign2(Reign $closingReign2 = null)
{
$this->closingReign2 = $closingReign2;
return $this;
}
/**
* Get closingReign2
*
* @return \App\Ox\HoardBundle\Entity\Reign
*/
public function getClosingReign2()
{
return $this->closingReign2;
}
/**
* Set discoveryMethod
*
* @param \App\Ox\HoardBundle\Entity\DiscoveryMethod $discoveryMethod
* @return Hoard
*/
public function setDiscoveryMethod(DiscoveryMethod $discoveryMethod = null)
{
$this->discoveryMethod = $discoveryMethod;
return $this;
}
/**
* Get discoveryMethod
*
* @return \App\Ox\HoardBundle\Entity\DiscoveryMethod
*/
public function getDiscoveryMethod()
{
return $this->discoveryMethod;
}
/**
* Set discoveryLandUse
*
* @param \App\Ox\HoardBundle\Entity\DiscoveryLandUse $discoveryLandUse
* @return Hoard
*/
public function setDiscoveryLandUse(DiscoveryLandUse $discoveryLandUse = null)
{
$this->discoveryLandUse = $discoveryLandUse;
return $this;
}
/**
* Get discoveryLandUse
*
* @return \App\Ox\HoardBundle\Entity\DiscoveryLandUse
*/
public function getDiscoveryLandUse()
{
return $this->discoveryLandUse;
}
/**
* Set archaeologyRecoveryMethod
*
* @param \App\Ox\HoardBundle\Entity\ArchaeologyRecoveryMethod $archaeologyRecoveryMethod
* @return Hoard
*/
public function setArchaeologyRecoveryMethod(ArchaeologyRecoveryMethod $archaeologyRecoveryMethod = null)
{
$this->archaeologyRecoveryMethod = $archaeologyRecoveryMethod;
return $this;
}
/**
* Get archaeologyRecoveryMethod
*
* @return \App\Ox\HoardBundle\Entity\ArchaeologyRecoveryMethod
*/
public function getArchaeologyRecoveryMethod()
{
return $this->archaeologyRecoveryMethod;
}
/**
* Set archaeologySiteContext
*
* @param \App\Ox\HoardBundle\Entity\ArchaeologySiteContext $archaeologySiteContext
* @return Hoard
*/
public function setArchaeologySiteContext(ArchaeologySiteContext $archaeologySiteContext = null)
{
$this->archaeologySiteContext = $archaeologySiteContext;
return $this;
}
/**
* Get archaeologySiteContext
*
* @return \App\Ox\HoardBundle\Entity\ArchaeologySiteContext
*/
public function getArchaeologySiteContext()
{
return $this->archaeologySiteContext;
}
/**
* Add archaeologySiteContextDetail
*
* @param \App\Ox\HoardBundle\Entity\archaeologySiteContextDetail $archaeologySiteContextDetail
* @return Hoard
*/
public function addArchaeologySiteContextDetail(ArchaeologySiteContextDetail $archaeologySiteContextDetail)
{
$this->archaeologySiteContextDetails[] = $archaeologySiteContextDetail;
return $this;
}
/**
* Remove archaeologySiteContextDetail
*
* @param \App\Ox\HoardBundle\Entity\ArchaeologySiteContextDetail $archaeologySiteContextDetail
* @return Hoard
*/
public function removeArchaeologySiteContextDetail(ArchaeologySiteContextDetail $archaeologySiteContextDetail)
{
$this->archaeologySiteContextDetails->removeElement($archaeologySiteContextDetail);
return $this;
}
/**
* Get archaeologySiteContextDetails
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getArchaeologySiteContextDetails()
{
return $this->archaeologySiteContextDetails;
}
/**
* Set archaeologyPeriod
*
* @param \App\Ox\HoardBundle\Entity\ArchaeologyPeriod $archaeologyPeriod
* @return Hoard
*/
public function setArchaeologyPeriod(ArchaeologyPeriod $archaeologyPeriod = null)
{
$this->archaeologyPeriod = $archaeologyPeriod;
return $this;
}
/**
* Get archaeologyPeriod
*
* @return \App\Ox\HoardBundle\Entity\ArchaeologyPeriod
*/
public function getArchaeologyPeriod()
{
return $this->archaeologyPeriod;
}
/**
* Add archaeologyContextNature
*
* @param \App\Ox\HoardBundle\Entity\ArchaeologyContextNature $archaeologyContextNature
* @return Hoard
*/
public function addArchaeologyContextNature(ArchaeologyContextNature $archaeologyContextNature)
{
$this->archaeologyContextNatures[] = $archaeologyContextNature;
return $this;
}
/**
* Remove archaeologyContextNature
*
* @param \App\Ox\HoardBundle\Entity\ArchaeologyContextNature $archaeologyContextNature
* @return Hoard
*/
public function removeArchaeologyContextNature(ArchaeologyContextNature $archaeologyContextNature)
{
$this->archaeologyContextNatures->removeElement($archaeologyContextNature);
return $this;
}
/**
* Get archaeologyContextNatures
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getArchaeologyContextNatures()
{
return $this->archaeologyContextNatures;
}
/**
* Set archaeologyEndPeriod
*
* @param \App\Ox\HoardBundle\Entity\ArchaeologyPeriod $archaeologyEndPeriod
* @return Hoard
*/
public function setArchaeologyEndPeriod(ArchaeologyPeriod $archaeologyEndPeriod = null)
{
$this->archaeologyEndPeriod = $archaeologyEndPeriod;
return $this;
}
/**
* Get archaeologyEndPeriod
*
* @return \App\Ox\HoardBundle\Entity\ArchaeologyPeriod
*/
public function getArchaeologyEndPeriod()
{
return $this->archaeologyEndPeriod;
}
/**
* Set findSpotRating
*
* @param \App\Ox\HoardBundle\Entity\Rating $findSpotRating
* @return Hoard
*/
public function setFindSpotRating(Rating $findSpotRating = null)
{
$this->findSpotRating = $findSpotRating;
return $this;
}
/**
* Get findSpotRating
*
* @return \App\Ox\HoardBundle\Entity\Rating
*/
public function getFindSpotRating()
{
return $this->findSpotRating;
}
/**
* Set contextualRating
*
* @param \App\Ox\HoardBundle\Entity\Rating $contextualRating
* @return Hoard
*/
public function setContextualRating(Rating $contextualRating = null)
{
$this->contextualRating = $contextualRating;
return $this;
}
/**
* Get contextualRating
*
* @return \App\Ox\HoardBundle\Entity\Rating
*/
public function getContextualRating()
{
return $this->contextualRating;
}
/**
* Set rating
*
* @param \App\Ox\HoardBundle\Entity\Rating $rating
* @return Hoard
*/
public function setRating(Rating $rating = null)
{
$this->rating = $rating;
return $this;
}
/**
* Get rating
*
* @return \App\Ox\HoardBundle\Entity\Rating
*/
public function getRating()
{
return $this->rating;
}
/**
* Set hideWhat
*
* @param \App\Ox\HoardBundle\Entity\HideWhat $hideWhat
* @return Hoard
*/
public function setHideWhat(HideWhat $hideWhat = null)
{
$this->hideWhat = $hideWhat;
return $this;
}
/**
* Get hideWhat
*
* @return \App\Ox\HoardBundle\Entity\HideWhat
*/
public function getHideWhat()
{
return $this->hideWhat;
}
/**
* Get hideLocation
*
* @return boolean
*/
public function getHideLocation()
{
return $this->hideLocation;
}
/**
* Set hideLocation
*
* @param boolean $hideLocation
* @return Hoard
*/
public function setHideLocation($hideLocation)
{
$this->hideLocation = $hideLocation;
return $this;
}
/**
* Set hideFrom
*
* @param \App\Ox\HoardBundle\Entity\HideFrom $hideFrom
* @return Hoard
*/
public function setHideFrom(HideFrom $hideFrom = null)
{
$this->hideFrom = $hideFrom;
return $this;
}
/**
* Get hideFrom
*
* @return \App\Ox\HoardBundle\Entity\HideFrom
*/
public function getHideFrom()
{
return $this->hideFrom;
}
/**
* Get hideCity
*
* @return boolean
*/
public function getHideCity()
{
return $this->hideCity;
}
/**
* Set hideCity
*
* @param boolean $hideCity
* @return Hoard
*/
public function setHideCity($hideCity)
{
$this->hideCity = $hideCity;
return $this;
}
/**
* Get hideCounty
*
* @return boolean
*/
public function getHideCounty()
{
return $this->hideCounty;
}
/**
* Set hideCounty
*
* @param boolean $hideCounty
* @return Hoard
*/
public function setHideCounty($hideCounty)
{
$this->hideCounty = $hideCounty;
return $this;
}
/**
* Get hideFinder
*
* @return boolean
*/
public function getHideFinder()
{
return $this->hideFinder;
}
/**
* Set hideFinder
*
* @param boolean $hideFinder
* @return Hoard
*/
public function setHideFinder($hideFinder)
{
$this->hideFinder = $hideFinder;
return $this;
}
/**
* Set credit
*
* @param string $credit
* @return Hoard
*/
public function setCredit($credit)
{
$this->credit = $credit;
return $this;
}
/**
* Get credit
*
* @return string
*/
public function getCredit()
{
if ($this->credit !== null) {
return $this->credit;
} else {
$defaultValue = "";
if ($this->getCreated() !== null) {
$defaultValue = $defaultValue . "Created by ". $this->getCreated() .". ";
}
if ($this->getModified() !== null) {
$defaultValue = $defaultValue . "Last modified by ". $this->getModified() .".";
}
return $defaultValue;
}
}
/**
* Mark Unvalidated by admin
*
* The current entity or a related entity has changed, so mark it as no longer validated
*/
public function markUnvalidatedByAdmin()
{
$this->setValidatedByAdmin(false);
}
/**
* Add country
*
* @param \App\Ox\HoardBundle\Entity\Country $country
* @return Hoard
*/
public function addCountry(Country $country)
{
$this->countries[] = $country;
return $this;
}
/**
* Remove country
*
* @param \App\Ox\HoardBundle\Entity\Country $country
* @return Hoard
*/
public function removeCountry(Country $country)
{
$this->countries->removeElement($country);
return $this;
}
/**
* Get countries
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getCountries()
{
return $this->countries;
}
/**
* Set redirectToHoard
*
* @param integer redirectToHoard
* @return Hoard
*/
public function setRedirectToHoard($redirectToHoard)
{
$this->redirectToHoard = $redirectToHoard;
return $this;
}
/**
* Get redirectToHoard
*
* @return integer
*/
public function getRedirectToHoard()
{
return $this->redirectToHoard;
}
/**
* Set internalNote
*
* @param string $internalNote
*
*/
public function setInternalNote($internalNote)
{
$this->internalNote = $internalNote;
return $this;
}
/**
* Get internalNote
*
* @return string
*/
public function getInternalNote()
{
return $this->internalNote;
}
public function setClosingReign1Date($closingReign1Date) {
$this->closingReign1Date = $closingReign1Date;
return $this;
}
public function getClosingReign1Date() {
return $this->closingReign1Date;
}
public function setClosingReign2Date($closingReign2Date) {
$this->closingReign2Date = $closingReign2Date;
return $this;
}
public function getClosingReign2Date() {
return $this->closingReign2Date;
}
public function setClosingReign1Label($closingReign1Label) {
$this->closingReign1Label = $closingReign1Label;
return $this;
}
public function getClosingReign1Label() {
return $this->closingReign1Label;
}
public function setClosingReign2Label($closingReign2Label) {
$this->closingReign2Label = $closingReign2Label;
return $this;
}
public function getClosingReign2Label() {
return $this->closingReign2Label;
}
public function setArchaeologySiteContextName($archaeologySiteContextName) {
$this->archaeologySiteContextName = $archaeologySiteContextName;
return $this;
}
public function getArchaeologySiteContextName() {
return $this->archaeologySiteContextName;
}
public function setArchaeologySiteContextSortOrder($archaeologySiteContextSortOrder) {
$this->archaeologySiteContextSortOrder = $archaeologySiteContextSortOrder;
return $this;
}
public function getArchaeologySiteContextSortOrder() {
return $this->archaeologySiteContextSortOrder;
}
public function setHoardCoins($hoardCoins) {
$this->hoardCoins = $hoardCoins;
return $this;
}
public function getHoardCoins() {
return $this->hoardCoins;
}
}