src/Ox/HoardBundle/Entity/Hoard.php line 783

Open in your IDE?
  1. <?php
  2. namespace App\Ox\HoardBundle\Entity;
  3. use Symfony\Component\Validator\Constraints as Assert;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use JMS\Serializer\Annotation as JMS;
  7. use App\Ox\HoardBundle\Entity\EntityBase;
  8. use JsonSerializable;
  9. /**
  10.  * Hoard
  11.  *
  12.  * @ORM\HasLifecycleCallbacks
  13.  * @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"})})
  14.  * @ORM\Entity
  15.  * @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=true)
  16.  * @JMS\ExclusionPolicy("all")
  17.  */
  18. class Hoard extends EntityBase implements JsonSerializable
  19. {
  20.     /**
  21.      * @var integer
  22.      *
  23.      * @ORM\Column(name="id", type="integer")
  24.      * @ORM\Id
  25.      * @ORM\GeneratedValue(strategy="IDENTITY")
  26.      * @JMS\Expose
  27.      */
  28.     private $id;
  29.     /**
  30.      * @var string
  31.      *
  32.      * @ORM\Column(name="find_spot_name", type="string", length=255, nullable=true)
  33.      * @JMS\Expose
  34.      */
  35.     private $findSpotName;
  36.     /**
  37.      * @var string
  38.      *
  39.      * @ORM\Column(name="find_spot_other_names", type="string", length=255, nullable=true)
  40.      * @JMS\Expose
  41.      */
  42.     private $findSpotOtherNames;
  43.     /**
  44.      * @var string
  45.      *
  46.      * @ORM\Column(name="address", type="string", length=255, nullable=true)
  47.      * @JMS\Expose
  48.      */
  49.     private $address;
  50.     /**
  51.      * @var string
  52.      *
  53.      * @ORM\Column(name="city", type="string", length=255, nullable=true)
  54.      * @JMS\Expose
  55.      */
  56.     private $city;
  57.     /**
  58.      * @var string
  59.      *
  60.      * @ORM\Column(name="county", type="string", length=255, nullable=true)
  61.      * @JMS\Expose
  62.      */
  63.     private $county;
  64.     /**
  65.      * @var string
  66.      *
  67.      * @ORM\Column(name="region", type="string", length=255, nullable=true)
  68.      * @JMS\Expose
  69.      */
  70.     private $region;
  71.     /**
  72.      * @var float
  73.      *
  74.      * @ORM\Column(name="find_spot_latitude", type="float", precision=10, scale=0, nullable=true)
  75.      * @JMS\Expose
  76.      */
  77.     private $findSpotLatitude;
  78.     /**
  79.      * @var float
  80.      *
  81.      * @ORM\Column(name="find_spot_longitude", type="float", precision=10, scale=0, nullable=true)
  82.      * @JMS\Expose
  83.      */
  84.     private $findSpotLongitude;
  85.     /**
  86.      * @var float
  87.      *
  88.      * @ORM\Column(name="find_spot_altitude", type="float", precision=10, scale=0, nullable=true)
  89.      * @JMS\Expose
  90.      */
  91.     private $findSpotAltitude;
  92.     /**
  93.      * @var string
  94.      *
  95.      * @ORM\Column(name="find_spot_comment", type="text", nullable=true)
  96.      * @JMS\Expose
  97.      */
  98.     private $findSpotComment;
  99.     /**
  100.      * @var integer
  101.      *
  102.      * @ORM\Column(name="discovery_day1", type="integer", nullable=true)
  103.      * @JMS\Expose
  104.      */
  105.     private $discoveryDay1;
  106.     /**
  107.      * @var integer
  108.      *
  109.      * @ORM\Column(name="discovery_month1", type="integer", nullable=true)
  110.      * @JMS\Expose
  111.      */
  112.     private $discoveryMonth1;
  113.     /**
  114.      * @var integer
  115.      *
  116.      * @ORM\Column(name="discovery_year1", type="integer", nullable=true)
  117.      * @JMS\Expose
  118.      */
  119.     private $discoveryYear1;
  120.     /**
  121.      * @var integer
  122.      *
  123.      * @ORM\Column(name="discovery_day2", type="integer", nullable=true)
  124.      * @JMS\Expose
  125.      */
  126.     private $discoveryDay2;
  127.     /**
  128.      * @var integer
  129.      *
  130.      * @ORM\Column(name="discovery_month2", type="integer", nullable=true)
  131.      * @JMS\Expose
  132.      */
  133.     private $discoveryMonth2;
  134.     /**
  135.      * @var integer
  136.      *
  137.      * @ORM\Column(name="discovery_year2", type="integer", nullable=true)
  138.      * @JMS\Expose
  139.      */
  140.     private $discoveryYear2;
  141.     /**
  142.      * @var integer
  143.      *
  144.      * @ORM\Column(name="opening_year1", type="integer", nullable=true)
  145.      * @JMS\Expose
  146.      */
  147.     private $openingYear1;
  148.     /**
  149.      * @var integer
  150.      *
  151.      * @ORM\Column(name="opening_year2", type="integer", nullable=true)
  152.      * @JMS\Expose
  153.      */
  154.     private $openingYear2;
  155.     /**
  156.      * @var integer
  157.      *
  158.      * @ORM\Column(name="terminal_year1", type="integer", nullable=true)
  159.      * @JMS\Expose
  160.      */
  161.     private $terminalYear1;
  162.     /**
  163.      * @var integer
  164.      *
  165.      * @ORM\Column(name="terminal_year2", type="integer", nullable=true)
  166.      * @JMS\Expose
  167.      */
  168.     private $terminalYear2;
  169.     /**
  170.      * @var string
  171.      *
  172.      * @ORM\Column(name="reference_string", type="text", nullable=true)
  173.      * @JMS\Expose
  174.      */
  175.     private $reference_string;
  176.     /**
  177.      * @var \App\Ox\HoardBundle\Entity\CoinLevelData
  178.      *
  179.      * @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\CoinLevelData")
  180.      * @ORM\JoinColumns({
  181.      *   @ORM\JoinColumn(name="coin_level_data_id", referencedColumnName="id")
  182.      * })
  183.      * @JMS\Expose
  184.      */
  185.     private $coinLevelData;
  186.     /**
  187.      * @var string
  188.      *
  189.      * @ORM\Column(name="discovery_depth", type="string", length=255, nullable=true)
  190.      * @JMS\Expose
  191.      */
  192.     private $discoveryDepth;
  193.     /**
  194.      * @var string
  195.      *
  196.      * @ORM\Column(name="owner", type="string", length=255, nullable=true)
  197.      * @JMS\Expose
  198.      */
  199.     private $owner;
  200.     /**
  201.      * @var string
  202.      *
  203.      * @ORM\Column(name="finder", type="string", length=255, nullable=true)
  204.      * @JMS\Expose
  205.      */
  206.     private $finder;
  207.     /**
  208.      * @var string
  209.      *
  210.      * @ORM\Column(name="discovery_comment", type="text", nullable=true)
  211.      * @JMS\Expose
  212.      */
  213.     private $discoveryComment;
  214.     /**
  215.      * @var integer
  216.      *
  217.      * @ORM\Column(name="archaeology_start_year", type="integer", nullable=true)
  218.      * @JMS\Expose
  219.      */
  220.     private $archaeologyStartYear;
  221.     /**
  222.      * @var integer
  223.      *
  224.      * @ORM\Column(name="archaeology_end_year", type="integer", nullable=true)
  225.      * @JMS\Expose
  226.      */
  227.     private $archaeologyEndYear;
  228.     /**
  229.      * @var string
  230.      *
  231.      * @ORM\Column(name="archaeology_natural_features", type="string", length=255, nullable=true)
  232.      * @JMS\Expose
  233.      */
  234.     private $archaeologyNaturalFeatures;
  235.     /**
  236.      * @var string
  237.      *
  238.      * @ORM\Column(name="archaeology_site_comment", type="text", nullable=true)
  239.      * @JMS\Expose
  240.      */
  241.     private $archaeologySiteComment;
  242.     /**
  243.      * @var integer
  244.      *
  245.      * @ORM\Column(name="archaeology_context_date1", type="integer", nullable=true)
  246.      * @JMS\Expose
  247.      */
  248.     private $archaeologyContextDate1;
  249.     /**
  250.      * @var integer
  251.      *
  252.      * @ORM\Column(name="archaeology_context_date2", type="integer", nullable=true)
  253.      * @JMS\Expose
  254.      */
  255.     private $archaeologyContextDate2;
  256.     /**
  257.      * @var string
  258.      *
  259.      * @ORM\Column(name="archaeology_associated_features", type="text", nullable=true)
  260.      * @JMS\Expose
  261.      */
  262.     private $archaeologyAssociatedFeatures;
  263.     /**
  264.      * @var string
  265.      *
  266.      * @ORM\Column(name="rating_comment", type="text", nullable=true)
  267.      * @JMS\Expose
  268.      */
  269.     private $ratingComment;
  270.     /**
  271.      * @var boolean
  272.      *
  273.      * @ORM\Column(name="validated_by_user", type="boolean", nullable=true)
  274.      * @JMS\Expose
  275.      */
  276.     private $validatedByUser;
  277.     /**
  278.      * @var boolean
  279.      *
  280.      * @ORM\Column(name="validated_by_admin", type="boolean", nullable=true)
  281.      */
  282.     private $validatedByAdmin;
  283.     /**
  284.      * @var boolean
  285.      *
  286.      * @ORM\Column(name="coin_data_validated_by_user", type="boolean", nullable=true)
  287.      * @JMS\Expose
  288.      */
  289.     private $coinDataValidatedByUser;
  290.     /**
  291.      * @var boolean
  292.      *
  293.      * @ORM\Column(name="coin_data_validated_by_admin", type="boolean", nullable=true)
  294.      */
  295.     private $coinDataValidatedByAdmin;
  296.     /**
  297.      * @var boolean
  298.      *
  299.      * @ORM\Column(name="deleted", type="boolean", nullable=true)
  300.      */
  301.     private $deleted;
  302.     /**
  303.      * @ORM\Column(name="deletedAt", type="datetime", nullable=true)
  304.      */
  305.     private $deletedAt;
  306.     /**
  307.      * @var \Doctrine\Common\Collections\Collection
  308.      *
  309.      * @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\UserHoard", mappedBy="hoard")
  310.      */
  311.     private $accessibleUsers;
  312.     /**
  313.      * @var \Doctrine\Common\Collections\Collection
  314.      *
  315.      * @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\Coin", mappedBy="hoard")
  316.      */
  317.     private $coins;
  318.     /**
  319.      * @var \App\Ox\HoardBundle\Entity\HoardCoinCount
  320.      *
  321.      * @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\HoardCoinCount", mappedBy="hoard")
  322.      */
  323.     private $coinCount;
  324.     /**
  325.      * @var \App\Ox\HoardBundle\Entity\HoardNameSimple
  326.      *
  327.      * @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\HoardNameSimple", mappedBy="hoard")
  328.      */
  329.     private $nameSimple;
  330.     /**
  331.      * @var \Doctrine\Common\Collections\Collection
  332.      *
  333.      * @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\Container", mappedBy="hoard")
  334.      */
  335.     private $containers;
  336.     /**
  337.      * @var \Doctrine\Common\Collections\Collection
  338.      *
  339.      * @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\HoardImage", mappedBy="hoard")
  340.      */
  341.     private $hoardImages;
  342.     
  343.     
  344.     
  345.     /**
  346.      * @var \Doctrine\Common\Collections\Collection
  347.      *
  348.      * @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\HoardReference", mappedBy="hoard")
  349.      */
  350.     private $hoardReferences;
  351.     /**
  352.      * @var \Doctrine\Common\Collections\Collection
  353.      *
  354.      * @ORM\OneToMany(targetEntity="App\Ox\HoardBundle\Entity\HObject", mappedBy="hoard")
  355.      */
  356.     private $objects;
  357.     /**
  358.      * @var \App\Ox\HoardBundle\Entity\HoardType
  359.      *
  360.      * @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\HoardType", inversedBy="hoards")
  361.      * @ORM\JoinColumns({
  362.      *   @ORM\JoinColumn(name="hoard_type_id", referencedColumnName="id")
  363.      * })
  364.      * @JMS\Expose
  365.      */
  366.     private $hoardType;
  367.     
  368.     /**
  369.      *@var \Doctrine\Common\Collections\Collection
  370.      *
  371.      *@ORM\ManyToMany(targetEntity="App\Ox\HoardBundle\Entity\Country")
  372.      *@ORM\JoinTable(name="hoard_country",
  373.      *     joinColumns={@ORM\JoinColumn(name="hoard_id", referencedColumnName="id")},
  374.      *     inverseJoinColumns={@ORM\JoinColumn(name="country_id", referencedColumnName="id")}
  375.      *)
  376.      *@Assert\Count(min = "1")
  377.      *@JMS\Expose
  378.      */
  379.     private $countries;
  380.     /**
  381.      * @var \App\Ox\HoardBundle\Entity\Province
  382.      *
  383.      * @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\Province", inversedBy="hoards")
  384.      * @ORM\JoinColumns({
  385.      *   @ORM\JoinColumn(name="province_id", referencedColumnName="id")
  386.      * })
  387.      * @JMS\Expose
  388.      */
  389.     private $province;    
  390.     /**
  391.      * @var \App\Ox\HoardBundle\Entity\FindSpotLocationDetail
  392.      *
  393.      * @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\FindSpotLocationDetail", inversedBy="hoards")
  394.      * @ORM\JoinColumns({
  395.      *   @ORM\JoinColumn(name="find_spot_location_detail_id", referencedColumnName="id")
  396.      * })
  397.      * @JMS\Expose
  398.      */
  399.     private $findSpotLocationDetail;
  400.     /**
  401.      * @var \App\Ox\HoardBundle\Entity\AncientPlace
  402.      *
  403.      * @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\AncientPlace", inversedBy="hoards")
  404.      * @ORM\JoinColumns({
  405.      *   @ORM\JoinColumn(name="ancient_place_id", referencedColumnName="id")
  406.      * })
  407.      * @JMS\Expose
  408.      */
  409.     private $ancientPlace;
  410.     /**
  411.      * @var \App\Ox\HoardBundle\Entity\Reign
  412.      *
  413.      * @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\Reign")
  414.      * @ORM\JoinColumns({
  415.      *   @ORM\JoinColumn(name="closing_reign1_id", referencedColumnName="id")
  416.      * })
  417.      * @JMS\Expose
  418.      */
  419.     private $closingReign1;
  420.     /**
  421.      * @var \App\Ox\HoardBundle\Entity\Reign
  422.      *
  423.      * @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\Reign")
  424.      * @ORM\JoinColumns({
  425.      *   @ORM\JoinColumn(name="closing_reign2_id", referencedColumnName="id")
  426.      * })
  427.      * @JMS\Expose
  428.      */
  429.     private $closingReign2;
  430.     /**
  431.      * @var \App\Ox\HoardBundle\Entity\DiscoveryMethod
  432.      *
  433.      * @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\DiscoveryMethod", inversedBy="hoards")
  434.      * @ORM\JoinColumns({
  435.      *   @ORM\JoinColumn(name="discovery_method_id", referencedColumnName="id")
  436.      * })
  437.      * @JMS\Expose
  438.      */
  439.     private $discoveryMethod;
  440.     /**
  441.      * @var \App\Ox\HoardBundle\Entity\DiscoveryLandUse
  442.      *
  443.      * @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\DiscoveryLandUse", inversedBy="hoards")
  444.      * @ORM\JoinColumns({
  445.      *   @ORM\JoinColumn(name="discovery_land_use_id", referencedColumnName="id")
  446.      * })
  447.      * @JMS\Expose
  448.      */
  449.     private $discoveryLandUse;
  450.     /**
  451.      * @var \App\Ox\HoardBundle\Entity\ArchaeologyRecoveryMethod
  452.      *
  453.      * @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\ArchaeologyRecoveryMethod", inversedBy="hoards")
  454.      * @ORM\JoinColumns({
  455.      *   @ORM\JoinColumn(name="archaeology_recovery_method_id", referencedColumnName="id")
  456.      * })
  457.      * @JMS\Expose
  458.      */
  459.     private $archaeologyRecoveryMethod;
  460.     /**
  461.      * @var \App\Ox\HoardBundle\Entity\ArchaeologySiteContext
  462.      *
  463.      * @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\ArchaeologySiteContext", inversedBy="hoards")
  464.      * @ORM\JoinColumns({
  465.      *   @ORM\JoinColumn(name="archaeology_site_context_id", referencedColumnName="id")
  466.      * })
  467.      * @JMS\Expose
  468.      */
  469.     private $archaeologySiteContext;
  470.     /**
  471.      *@var \Doctrine\Common\Collections\Collection
  472.      *
  473.      *@ORM\ManyToMany(targetEntity="App\Ox\HoardBundle\Entity\ArchaeologySiteContextDetail")
  474.      *@ORM\JoinTable(name="hoard_archaeology_site_context_detail",
  475.      *     joinColumns={@ORM\JoinColumn(name="hoard_id", referencedColumnName="id")},
  476.      *     inverseJoinColumns={@ORM\JoinColumn(name="archaeology_site_context_detail_id", referencedColumnName="id")}
  477.      *)
  478.      *@JMS\Expose
  479.      */
  480.     private $archaeologySiteContextDetails;
  481.     /**
  482.      * @var \App\Ox\HoardBundle\Entity\ArchaeologyPeriod
  483.      *
  484.      * @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\ArchaeologyPeriod")
  485.      * @ORM\JoinColumns({
  486.      *   @ORM\JoinColumn(name="archaeology_period_id", referencedColumnName="id")
  487.      * })
  488.      * @JMS\Expose
  489.      */
  490.     private $archaeologyPeriod;
  491.     /**
  492.      *@var \Doctrine\Common\Collections\Collection
  493.      *
  494.      *@ORM\ManyToMany(targetEntity="App\Ox\HoardBundle\Entity\ArchaeologyContextNature")
  495.      *@ORM\JoinTable(name="hoard_archaeology_context_nature",
  496.      *     joinColumns={@ORM\JoinColumn(name="hoard_id", referencedColumnName="id")},
  497.      *     inverseJoinColumns={@ORM\JoinColumn(name="archaeology_context_nature_id", referencedColumnName="id")}
  498.      *)
  499.      *@JMS\Expose
  500.      */
  501.     private $archaeologyContextNatures;
  502.     /**
  503.      * @var \App\Ox\HoardBundle\Entity\ArchaeologyPeriod
  504.      *
  505.      * @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\ArchaeologyPeriod")
  506.      * @ORM\JoinColumns({
  507.      *   @ORM\JoinColumn(name="archaeology_end_period_id", referencedColumnName="id")
  508.      * })
  509.      * @JMS\Expose
  510.      */
  511.     private $archaeologyEndPeriod;
  512.     /**
  513.      * @var \App\Ox\HoardBundle\Entity\Rating
  514.      *
  515.      * @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\Rating")
  516.      * @ORM\JoinColumns({
  517.      *   @ORM\JoinColumn(name="find_spot_rating_id", referencedColumnName="id")
  518.      * })
  519.      * @JMS\Expose
  520.      */
  521.     private $findSpotRating;
  522.     /**
  523.      * @var \App\Ox\HoardBundle\Entity\Rating
  524.      *
  525.      * @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\Rating")
  526.      * @ORM\JoinColumns({
  527.      *   @ORM\JoinColumn(name="contextual_rating_id", referencedColumnName="id")
  528.      * })
  529.      * @JMS\Expose
  530.      */
  531.     private $contextualRating;    
  532.     /**
  533.      * @var \App\Ox\HoardBundle\Entity\Rating
  534.      *
  535.      * @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\Rating")
  536.      * @ORM\JoinColumns({
  537.      *   @ORM\JoinColumn(name="rating_id", referencedColumnName="id")
  538.      * })
  539.      * @JMS\Expose
  540.      */
  541.     private $rating;    
  542.     /**
  543.      * @var \App\Ox\HoardBundle\Entity\HideWhat
  544.      *
  545.      * @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\HideWhat")
  546.      * @ORM\JoinColumns({
  547.      *   @ORM\JoinColumn(name="hide_what_id", referencedColumnName="id")
  548.      * })
  549.      * @JMS\Expose
  550.      */
  551.     private $hideWhat;
  552.     /**
  553.      * @var boolean
  554.      *
  555.      * @ORM\Column(name="hide_location", type="boolean", nullable=true)
  556.      * @JMS\Expose
  557.      */
  558.     private $hideLocation;
  559.     /**
  560.      * @var \App\Ox\HoardBundle\Entity\HideFrom
  561.      *
  562.      * @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\HideFrom")
  563.      * @ORM\JoinColumns({
  564.      *   @ORM\JoinColumn(name="hide_from_id", referencedColumnName="id")
  565.      * })
  566.      * @JMS\Expose
  567.      */
  568.     private $hideFrom;
  569.     /**
  570.      * @var boolean
  571.      *
  572.      * @ORM\Column(name="hide_city", type="boolean", nullable=true)
  573.      * @JMS\Expose
  574.      */
  575.     private $hideCity;
  576.     /**
  577.      * @var boolean
  578.      *
  579.      * @ORM\Column(name="hide_county", type="boolean", nullable=true)
  580.      * @JMS\Expose
  581.      */
  582.     private $hideCounty;
  583.     /**
  584.      * @var boolean
  585.      *
  586.      * @ORM\Column(name="hide_finder", type="boolean", nullable=true)
  587.      * @JMS\Expose
  588.      */
  589.     private $hideFinder;
  590.     /**
  591.      * @var \App\Ox\HoardBundle\Entity\User
  592.      *
  593.      * @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\User", inversedBy="hoardsCreated")
  594.      * @ORM\JoinColumns({
  595.      *   @ORM\JoinColumn(name="created_by", referencedColumnName="id")
  596.      * })
  597.      */
  598.     protected $created;
  599.     /**
  600.      * @var \App\Ox\HoardBundle\Entity\User
  601.      *
  602.      * @ORM\ManyToOne(targetEntity="App\Ox\HoardBundle\Entity\User", inversedBy="hoardsLastModified")
  603.      * @ORM\JoinColumns({
  604.      *   @ORM\JoinColumn(name="modified_by", referencedColumnName="id")
  605.      * })
  606.      */
  607.     protected $modified;
  608.     /**
  609.      * @var string
  610.      *
  611.      * @ORM\Column(name="credit", type="text", nullable=true)
  612.      * @JMS\Expose
  613.      */
  614.     private $credit;
  615.     /**
  616.      * @var integer
  617.      *
  618.      * @ORM\Column(name="redirect_to_hoard", type="integer", nullable=true)
  619.      * @JMS\Expose
  620.      */
  621.     private $redirectToHoard;
  622.     /**
  623.      * @var string
  624.      *
  625.      * @ORM\Column(name="internal_note", type="text", nullable=true)
  626.      */
  627.     protected $internalNote;
  628.     /**
  629.      * @var string
  630.      *
  631.      * @JMS\Expose
  632.      */
  633.     private $closingReign1Date;
  634.     /**
  635.      * @var string
  636.      *
  637.      * @JMS\Expose
  638.      */
  639.     private $closingReign2Date;
  640.     /**
  641.      * @var string
  642.      *
  643.      * @JMS\Expose
  644.      */
  645.     private $closingReign1Label;
  646.     /**
  647.      * @var string
  648.      *
  649.      * @JMS\Expose
  650.      */
  651.     private $closingReign2Label;
  652.     /**
  653.      * @var string
  654.      *
  655.      * @JMS\Expose
  656.      */
  657.     private $archaeologySiteContextName;
  658.     /**
  659.      * @var integer
  660.      *
  661.      * @JMS\Expose
  662.      */
  663.     private $archaeologySiteContextSortOrder;
  664.     /**
  665.      * @var array
  666.      *
  667.      * @JMS\Expose
  668.      */
  669.     private $hoardCoins;
  670.     /**
  671.      * Constructor
  672.      */
  673.     public function __construct()
  674.     {
  675.         $this->accessibleUsers = new \Doctrine\Common\Collections\ArrayCollection();
  676.         $this->coins = new \Doctrine\Common\Collections\ArrayCollection();
  677.         $this->containers = new \Doctrine\Common\Collections\ArrayCollection();
  678.         $this->countries = new \Doctrine\Common\Collections\ArrayCollection();
  679.         $this->hoardImages = new \Doctrine\Common\Collections\ArrayCollection();
  680.         $this->hoardReferences = new \Doctrine\Common\Collections\ArrayCollection();
  681.         $this->objects = new \Doctrine\Common\Collections\ArrayCollection();
  682.         $this->lol2 '';
  683.     }
  684.     /**
  685.      * @return string
  686.      */
  687.     public function __toString()
  688.     {
  689.         if (is_null($this->findSpotName)) {
  690.             return '';
  691.         } else return $this->findSpotName;
  692.     }
  693.     public function jsonSerialize()
  694.     {
  695.         $data = array(
  696.             'id' => $this->id,
  697.             'findSpotName' => $this->findSpotName,
  698.             'address' => $this->address
  699.         );
  700.         if($this->hoardType) {
  701.             $data['hoardType'] = $this->hoardType->__toString();
  702.         }
  703.         if($this->discoveryLandUse) {
  704.             $data['discoveryLandUse'] = $this->discoveryLandUse->__toString();
  705.         }
  706.         return $data;
  707.     }
  708.     /**
  709.      * Get id
  710.      *
  711.      * @return integer
  712.      */
  713.     public function getId()
  714.     {
  715.         return $this->id;
  716.     }
  717.     /**
  718.      * Set findSpotName
  719.      *
  720.      * @param integer $id
  721.      * @return Hoard
  722.      */
  723.     public function setId($id)
  724.     {
  725.         $this->id $id;
  726.         return $this;
  727.     }
  728.     /**
  729.      * Set findSpotName
  730.      *
  731.      * @param string $findSpotName
  732.      * @return Hoard
  733.      */
  734.     public function setFindSpotName($findSpotName)
  735.     {
  736.         $this->findSpotName $findSpotName;
  737.         return $this;
  738.     }
  739.     /**
  740.      * Get findSpotName
  741.      *
  742.      * @return string
  743.      */
  744.     public function getFindSpotName()
  745.     {
  746.         return $this->findSpotName;
  747.     }
  748.     /**
  749.      * Set findSpotOtherNames
  750.      *
  751.      * @param string $findSpotOtherNames
  752.      * @return Hoard
  753.      */
  754.     public function setFindSpotOtherNames($findSpotOtherNames)
  755.     {
  756.         $this->findSpotOtherNames $findSpotOtherNames;
  757.         return $this;
  758.     }
  759.     /**
  760.      * Get findSpotOtherNames
  761.      *
  762.      * @return string
  763.      */
  764.     public function getFindSpotOtherNames()
  765.     {
  766.         return $this->findSpotOtherNames;
  767.     }
  768.     /**
  769.      * Set address
  770.      *
  771.      * @param string $address
  772.      * @return Hoard
  773.      */
  774.     public function setAddress($address)
  775.     {
  776.         $this->address $address;
  777.         return $this;
  778.     }
  779.     /**
  780.      * Get address
  781.      *
  782.      * @return string
  783.      */
  784.     public function getAddress()
  785.     {
  786.         return $this->address;
  787.     }
  788.     /**
  789.      * Set city
  790.      *
  791.      * @param string $city
  792.      * @return Hoard
  793.      */
  794.     public function setCity($city)
  795.     {
  796.         $this->city $city;
  797.         return $this;
  798.     }
  799.     /**
  800.      * Get city
  801.      *
  802.      * @return string
  803.      */
  804.     public function getCity()
  805.     {
  806.         return $this->city;
  807.     }
  808.     /**
  809.      * Set county
  810.      *
  811.      * @param string $county
  812.      * @return Hoard
  813.      */
  814.     public function setCounty($county)
  815.     {
  816.         $this->county $county;
  817.         return $this;
  818.     }
  819.     /**
  820.      * Get county
  821.      *
  822.      * @return string
  823.      */
  824.     public function getCounty()
  825.     {
  826.         return $this->county;
  827.     }
  828.     /**
  829.      * Set region
  830.      *
  831.      * @param string $region
  832.      * @return Hoard
  833.      */
  834.     public function setRegion($region)
  835.     {
  836.         $this->region $region;
  837.         return $this;
  838.     }
  839.     /**
  840.      * Get region
  841.      *
  842.      * @return string
  843.      */
  844.     public function getRegion()
  845.     {
  846.         return $this->region;
  847.     }
  848.     /**
  849.      * Set findSpotLatitude
  850.      *
  851.      * @param float $findSpotLatitude
  852.      * @return Hoard
  853.      */
  854.     public function setFindSpotLatitude($findSpotLatitude)
  855.     {
  856.         $this->findSpotLatitude $findSpotLatitude;
  857.         return $this;
  858.     }
  859.     /**
  860.      * Get findSpotLatitude
  861.      *
  862.      * @return float
  863.      */
  864.     public function getFindSpotLatitude()
  865.     {
  866.         return $this->findSpotLatitude;
  867.     }
  868.     /**
  869.      * Set findSpotLongitude
  870.      *
  871.      * @param float $findSpotLongitude
  872.      * @return Hoard
  873.      */
  874.     public function setFindSpotLongitude($findSpotLongitude)
  875.     {
  876.         $this->findSpotLongitude $findSpotLongitude;
  877.         return $this;
  878.     }
  879.     /**
  880.      * Get findSpotLongitude
  881.      *
  882.      * @return float
  883.      */
  884.     public function getFindSpotLongitude()
  885.     {
  886.         return $this->findSpotLongitude;
  887.     }
  888.     /**
  889.      * Set findSpotAltitude
  890.      *
  891.      * @param float $findSpotAltitude
  892.      * @return Hoard
  893.      */
  894.     public function setFindSpotAltitude($findSpotAltitude)
  895.     {
  896.         $this->findSpotAltitude $findSpotAltitude;
  897.         return $this;
  898.     }
  899.     /**
  900.      * Get findSpotAltitude
  901.      *
  902.      * @return float
  903.      */
  904.     public function getFindSpotAltitude()
  905.     {
  906.         return $this->findSpotAltitude;
  907.     }
  908.     /**
  909.      * Set findSpotComment
  910.      *
  911.      * @param string $findSpotComment
  912.      * @return Hoard
  913.      */
  914.     public function setFindSpotComment($findSpotComment)
  915.     {
  916.         $this->findSpotComment $findSpotComment;
  917.         return $this;
  918.     }
  919.     /**
  920.      * Get findSpotComment
  921.      *
  922.      * @return string
  923.      */
  924.     public function getFindSpotComment()
  925.     {
  926.         return $this->findSpotComment;
  927.     }
  928.     /**
  929.      * Set discoveryDay1
  930.      *
  931.      * @param integer $discoveryDay1
  932.      * @return Hoard
  933.      */
  934.     public function setDiscoveryDay1($discoveryDay1)
  935.     {
  936.         $this->discoveryDay1 $discoveryDay1;
  937.         return $this;
  938.     }
  939.     /**
  940.      * Get discoveryDay1
  941.      *
  942.      * @return integer
  943.      */
  944.     public function getDiscoveryDay1()
  945.     {
  946.         return $this->discoveryDay1;
  947.     }
  948.     /**
  949.      * Set discoveryMonth1
  950.      *
  951.      * @param integer $discoveryMonth1
  952.      * @return Hoard
  953.      */
  954.     public function setDiscoveryMonth1($discoveryMonth1)
  955.     {
  956.         $this->discoveryMonth1 $discoveryMonth1;
  957.         return $this;
  958.     }
  959.     /**
  960.      * Get discoveryMonth1
  961.      *
  962.      * @return integer
  963.      */
  964.     public function getDiscoveryMonth1()
  965.     {
  966.         return $this->discoveryMonth1;
  967.     }
  968.     /**
  969.      * Set discoveryYear1
  970.      *
  971.      * @param integer $discoveryYear1
  972.      * @return Hoard
  973.      */
  974.     public function setDiscoveryYear1($discoveryYear1)
  975.     {
  976.         $this->discoveryYear1 $discoveryYear1;
  977.         return $this;
  978.     }
  979.     /**
  980.      * Get discoveryYear1
  981.      *
  982.      * @return integer
  983.      */
  984.     public function getDiscoveryYear1()
  985.     {
  986.         return $this->discoveryYear1;
  987.     }
  988.     /**
  989.      * Set discoveryDay2
  990.      *
  991.      * @param integer $discoveryDay2
  992.      * @return Hoard
  993.      */
  994.     public function setDiscoveryDay2($discoveryDay2)
  995.     {
  996.         $this->discoveryDay2 $discoveryDay2;
  997.         return $this;
  998.     }
  999.     /**
  1000.      * Get discoveryDay2
  1001.      *
  1002.      * @return integer
  1003.      */
  1004.     public function getDiscoveryDay2()
  1005.     {
  1006.         return $this->discoveryDay2;
  1007.     }
  1008.     /**
  1009.      * Set discoveryMonth2
  1010.      *
  1011.      * @param integer $discoveryMonth2
  1012.      * @return Hoard
  1013.      */
  1014.     public function setDiscoveryMonth2($discoveryMonth2)
  1015.     {
  1016.         $this->discoveryMonth2 $discoveryMonth2;
  1017.         return $this;
  1018.     }
  1019.     /**
  1020.      * Get discoveryMonth2
  1021.      *
  1022.      * @return integer
  1023.      */
  1024.     public function getDiscoveryMonth2()
  1025.     {
  1026.         return $this->discoveryMonth2;
  1027.     }
  1028.     /**
  1029.      * Set discoveryYear2
  1030.      *
  1031.      * @param integer $discoveryYear2
  1032.      * @return Hoard
  1033.      */
  1034.     public function setDiscoveryYear2($discoveryYear2)
  1035.     {
  1036.         $this->discoveryYear2 $discoveryYear2;
  1037.         return $this;
  1038.     }
  1039.     /**
  1040.      * Get discoveryYear2
  1041.      *
  1042.      * @return integer
  1043.      */
  1044.     public function getDiscoveryYear2()
  1045.     {
  1046.         return $this->discoveryYear2;
  1047.     }
  1048.     /**
  1049.      * Set openingYear1
  1050.      *
  1051.      * @param integer $openingYear1
  1052.      * @return Hoard
  1053.      */
  1054.     public function setOpeningYear1($openingYear1)
  1055.     {
  1056.         $this->openingYear1 $openingYear1;
  1057.         return $this;
  1058.     }
  1059.     /**
  1060.      * Get openingYear1
  1061.      *
  1062.      * @return integer
  1063.      */
  1064.     public function getOpeningYear1()
  1065.     {
  1066.         return $this->openingYear1;
  1067.     }
  1068.     /**
  1069.      * Set openingYear2
  1070.      *
  1071.      * @param integer $openingYear2
  1072.      * @return Hoard
  1073.      */
  1074.     public function setOpeningYear2($openingYear2)
  1075.     {
  1076.         $this->openingYear2 $openingYear2;
  1077.         return $this;
  1078.     }
  1079.     /**
  1080.      * Get openingYear2
  1081.      *
  1082.      * @return integer
  1083.      */
  1084.     public function getOpeningYear2()
  1085.     {
  1086.         return $this->openingYear2;
  1087.     }
  1088.     /**
  1089.      * Set terminalYear1
  1090.      *
  1091.      * @param integer $terminalYear1
  1092.      * @return Hoard
  1093.      */
  1094.     public function setTerminalYear1($terminalYear1)
  1095.     {
  1096.         $this->terminalYear1 $terminalYear1;
  1097.         return $this;
  1098.     }
  1099.     /**
  1100.      * Get terminalYear1
  1101.      *
  1102.      * @return integer
  1103.      */
  1104.     public function getTerminalYear1()
  1105.     {
  1106.         return $this->terminalYear1;
  1107.     }
  1108.     /**
  1109.      * Set terminalYear2
  1110.      *
  1111.      * @param integer $terminalYear2
  1112.      * @return Hoard
  1113.      */
  1114.     public function setTerminalYear2($terminalYear2)
  1115.     {
  1116.         $this->terminalYear2 $terminalYear2;
  1117.         return $this;
  1118.     }
  1119.     /**
  1120.      * Get terminalYear2
  1121.      *
  1122.      * @return integer
  1123.      */
  1124.     public function getTerminalYear2()
  1125.     {
  1126.         return $this->terminalYear2;
  1127.     }
  1128.     /**
  1129.      * Set reference_string
  1130.      *
  1131.      * @param string $reference_string
  1132.      * @return Hoard
  1133.      */
  1134.     public function setReferenceString($reference_string)
  1135.     {
  1136.         $this->reference_string $reference_string;
  1137.         return $this;
  1138.     }
  1139.     /**
  1140.      * Get reference_string
  1141.      *
  1142.      * @return string
  1143.      */
  1144.     public function getReferenceString()
  1145.     {
  1146.         return $this->reference_string;
  1147.     }
  1148.     
  1149.     /**
  1150.      * Set coinLevelData
  1151.      *
  1152.      * @param \App\Ox\HoardBundle\Entity\CoinLevelData $coinLevelData;
  1153.      * @return Hoard
  1154.      */
  1155.     public function setCoinLevelData(CoinLevelData $coinLevelData null)
  1156.     {
  1157.         $this->coinLevelData $coinLevelData;
  1158.         return $this;
  1159.     }
  1160.     /**
  1161.      * Get coinLevelData
  1162.      *
  1163.      * @return \App\Ox\HoardBundle\Entity\CoinLevelData
  1164.      */
  1165.     public function getCoinLevelData()
  1166.     {
  1167.         return $this->coinLevelData;
  1168.     }
  1169.     /**
  1170.      * Set discoveryDepth
  1171.      *
  1172.      * @param string $discoveryDepth
  1173.      * @return Hoard
  1174.      */
  1175.     public function setDiscoveryDepth($discoveryDepth)
  1176.     {
  1177.         $this->discoveryDepth $discoveryDepth;
  1178.         return $this;
  1179.     }
  1180.     /**
  1181.      * Get discoveryDepth
  1182.      *
  1183.      * @return string
  1184.      */
  1185.     public function getDiscoveryDepth()
  1186.     {
  1187.         return $this->discoveryDepth;
  1188.     }
  1189.     /**
  1190.      * Set owner
  1191.      *
  1192.      * @param string $owner
  1193.      * @return Hoard
  1194.      */
  1195.     public function setOwner($owner)
  1196.     {
  1197.         $this->owner $owner;
  1198.         return $this;
  1199.     }
  1200.     /**
  1201.      * Get owner
  1202.      *
  1203.      * @return string
  1204.      */
  1205.     public function getOwner()
  1206.     {
  1207.         return $this->owner;
  1208.     }
  1209.     /**
  1210.      * Set finder
  1211.      *
  1212.      * @param string $finder
  1213.      * @return Hoard
  1214.      */
  1215.     public function setFinder($finder)
  1216.     {
  1217.         $this->finder $finder;
  1218.         return $this;
  1219.     }
  1220.     /**
  1221.      * Get finder
  1222.      *
  1223.      * @return string
  1224.      */
  1225.     public function getFinder()
  1226.     {
  1227.         return $this->finder;
  1228.     }
  1229.     /**
  1230.      * Set discoveryComment
  1231.      *
  1232.      * @param string $discoveryComment
  1233.      * @return Hoard
  1234.      */
  1235.     public function setDiscoveryComment($discoveryComment)
  1236.     {
  1237.         $this->discoveryComment $discoveryComment;
  1238.         return $this;
  1239.     }
  1240.     /**
  1241.      * Get discoveryComment
  1242.      *
  1243.      * @return string
  1244.      */
  1245.     public function getDiscoveryComment()
  1246.     {
  1247.         return $this->discoveryComment;
  1248.     }
  1249.     /**
  1250.      * Set archaeologyStartYear
  1251.      *
  1252.      * @param integer $archaeologyStartYear
  1253.      * @return Hoard
  1254.      */
  1255.     public function setArchaeologyStartYear($archaeologyStartYear)
  1256.     {
  1257.         $this->archaeologyStartYear $archaeologyStartYear;
  1258.         return $this;
  1259.     }
  1260.     /**
  1261.      * Get archaeologyStartYear
  1262.      *
  1263.      * @return integer
  1264.      */
  1265.     public function getArchaeologyStartYear()
  1266.     {
  1267.         return $this->archaeologyStartYear;
  1268.     }
  1269.     /**
  1270.      * Set archaeologyEndYear
  1271.      *
  1272.      * @param integer $archaeologyEndYear
  1273.      * @return Hoard
  1274.      */
  1275.     public function setArchaeologyEndYear($archaeologyEndYear)
  1276.     {
  1277.         $this->archaeologyEndYear $archaeologyEndYear;
  1278.         return $this;
  1279.     }
  1280.     /**
  1281.      * Get archaeologyEndYear
  1282.      *
  1283.      * @return integer
  1284.      */
  1285.     public function getArchaeologyEndYear()
  1286.     {
  1287.         return $this->archaeologyEndYear;
  1288.     }
  1289.     /**
  1290.      * Set archaeologyNaturalFeatures
  1291.      *
  1292.      * @param string $archaeologyNaturalFeatures
  1293.      * @return Hoard
  1294.      */
  1295.     public function setArchaeologyNaturalFeatures($archaeologyNaturalFeatures)
  1296.     {
  1297.         $this->archaeologyNaturalFeatures $archaeologyNaturalFeatures;
  1298.         return $this;
  1299.     }
  1300.     /**
  1301.      * Get archaeologyNaturalFeatures
  1302.      *
  1303.      * @return string
  1304.      */
  1305.     public function getArchaeologyNaturalFeatures()
  1306.     {
  1307.         return $this->archaeologyNaturalFeatures;
  1308.     }
  1309.     /**
  1310.      * Set archaeologySiteComment
  1311.      *
  1312.      * @param string $archaeologySiteComment
  1313.      * @return Hoard
  1314.      */
  1315.     public function setArchaeologySiteComment($archaeologySiteComment)
  1316.     {
  1317.         $this->archaeologySiteComment $archaeologySiteComment;
  1318.         return $this;
  1319.     }
  1320.     /**
  1321.      * Get archaeologySiteComment
  1322.      *
  1323.      * @return string
  1324.      */
  1325.     public function getArchaeologySiteComment()
  1326.     {
  1327.         return $this->archaeologySiteComment;
  1328.     }
  1329.     /**
  1330.      * Set archaeologyContextDate1
  1331.      *
  1332.      * @param integer $archaeologyContextDate1
  1333.      * @return Hoard
  1334.      */
  1335.     public function setArchaeologyContextDate1($archaeologyContextDate1)
  1336.     {
  1337.         $this->archaeologyContextDate1 $archaeologyContextDate1;
  1338.         return $this;
  1339.     }
  1340.     /**
  1341.      * Get archaeologyContextDate1
  1342.      *
  1343.      * @return integer
  1344.      */
  1345.     public function getArchaeologyContextDate1()
  1346.     {
  1347.         return $this->archaeologyContextDate1;
  1348.     }
  1349.     /**
  1350.      * Set archaeologyContextDate2
  1351.      *
  1352.      * @param integer $archaeologyContextDate2
  1353.      * @return Hoard
  1354.      */
  1355.     public function setArchaeologyContextDate2($archaeologyContextDate2)
  1356.     {
  1357.         $this->archaeologyContextDate2 $archaeologyContextDate2;
  1358.         return $this;
  1359.     }
  1360.     /**
  1361.      * Get archaeologyContextDate2
  1362.      *
  1363.      * @return integer
  1364.      */
  1365.     public function getArchaeologyContextDate2()
  1366.     {
  1367.         return $this->archaeologyContextDate2;
  1368.     }
  1369.     /**
  1370.      * Set archaeologyAssociatedFeatures
  1371.      *
  1372.      * @param string $archaeologyAssociatedFeatures
  1373.      * @return Hoard
  1374.      */
  1375.     public function setArchaeologyAssociatedFeatures($archaeologyAssociatedFeatures)
  1376.     {
  1377.         $this->archaeologyAssociatedFeatures $archaeologyAssociatedFeatures;
  1378.         return $this;
  1379.     }
  1380.     /**
  1381.      * Get archaeologyAssociatedFeatures
  1382.      *
  1383.      * @return string
  1384.      */
  1385.     public function getArchaeologyAssociatedFeatures()
  1386.     {
  1387.         return $this->archaeologyAssociatedFeatures;
  1388.     }
  1389.     /**
  1390.      * Set ratingComment
  1391.      *
  1392.      * @param string $ratingComment
  1393.      * @return Hoard
  1394.      */
  1395.     public function setRatingComment($ratingComment)
  1396.     {
  1397.         $this->ratingComment $ratingComment;
  1398.         return $this;
  1399.     }
  1400.     /**
  1401.      * Get ratingComment
  1402.      *
  1403.      * @return string
  1404.      */
  1405.     public function getRatingComment()
  1406.     {
  1407.         return $this->ratingComment;
  1408.     }
  1409.     /**
  1410.      * Set validatedByUser
  1411.      *
  1412.      * @param boolean $validatedByUser
  1413.      * @return Hoard
  1414.      */
  1415.     public function setValidatedByUser($validatedByUser)
  1416.     {
  1417.         $this->validatedByUser $validatedByUser;
  1418.         return $this;
  1419.     }
  1420.     /**
  1421.      * Get validatedByUser
  1422.      *
  1423.      * @return boolean
  1424.      */
  1425.     public function getValidatedByUser()
  1426.     {
  1427.         return $this->validatedByUser;
  1428.     }
  1429.     /**
  1430.      * Set validatedByAdmin
  1431.      *
  1432.      * @param boolean $validatedByAdmin
  1433.      * @return Hoard
  1434.      */
  1435.     public function setValidatedByAdmin($validatedByAdmin)
  1436.     {
  1437.         $this->validatedByAdmin $validatedByAdmin;
  1438.         return $this;
  1439.     }
  1440.     /**
  1441.      * Get validatedByAdmin
  1442.      *
  1443.      * @return boolean
  1444.      */
  1445.     public function getValidatedByAdmin()
  1446.     {
  1447.         return $this->validatedByAdmin;
  1448.     }
  1449.     /**
  1450.      * Set coinDataValidatedByUser
  1451.      *
  1452.      * @param boolean $coinDataValidatedByUser
  1453.      * @return Hoard
  1454.      */
  1455.     public function setCoinDataValidatedByUser($coinDataValidatedByUser)
  1456.     {
  1457.         $this->coinDataValidatedByUser $coinDataValidatedByUser;
  1458.         return $this;
  1459.     }
  1460.     /**
  1461.      * Get coinDataValidatedByUser
  1462.      *
  1463.      * @return boolean
  1464.      */
  1465.     public function getCoinDataValidatedByUser()
  1466.     {
  1467.         return $this->coinDataValidatedByUser;
  1468.     }
  1469.     /**
  1470.      * Set coinDataValidatedByAdmin
  1471.      *
  1472.      * @param boolean $coinDataValidatedByAdmin
  1473.      * @return Hoard
  1474.      */
  1475.     public function setCoinDataValidatedByAdmin($coinDataValidatedByAdmin)
  1476.     {
  1477.         $this->coinDataValidatedByAdmin $coinDataValidatedByAdmin;
  1478.         return $this;
  1479.     }
  1480.     /**
  1481.      * Get coinDataValidatedByAdmin
  1482.      *
  1483.      * @return boolean
  1484.      */
  1485.     public function getCoinDataValidatedByAdmin()
  1486.     {
  1487.         return $this->coinDataValidatedByAdmin;
  1488.     }
  1489.     /**
  1490.      * Set deleted
  1491.      *
  1492.      * @param boolean $deleted
  1493.      * @return Hoard
  1494.      */
  1495.     public function setDeleted($deleted)
  1496.     {
  1497.         $this->deleted $deleted;
  1498.         return $this;
  1499.     }
  1500.     /**
  1501.      * Get deleted
  1502.      *
  1503.      * @return boolean
  1504.      */
  1505.     public function getDeleted()
  1506.     {
  1507.         return $this->deleted;
  1508.     }
  1509.     /**
  1510.      * Set deleted
  1511.      *
  1512.      * @param boolean $deletedAt
  1513.      * @return Hoard
  1514.      */
  1515.      public function setDeletedAt($deletedAt)
  1516.      {
  1517.          $this->deletedAt $deletedAt;
  1518.          if (!$deletedAt) {
  1519.              $this->setDeleted(null);
  1520.          }
  1521.          return $this;
  1522.      }
  1523.      
  1524.     /**
  1525.      * Get deletedAt
  1526.      *
  1527.      * @return datetime
  1528.      */
  1529.     public function getDeletedAt()
  1530.     {
  1531.         return $this->deletedAt;
  1532.     }
  1533.     /**
  1534.      * Add accessibleUsers
  1535.      *
  1536.      * @param \App\Ox\HoardBundle\Entity\UserHoard $accessibleUsers
  1537.      * @return Hoard
  1538.      */
  1539.     public function addAccessibleUser(UserHoard $accessibleUsers)
  1540.     {
  1541.         $this->accessibleUsers[] = $accessibleUsers;
  1542.         return $this;
  1543.     }
  1544.     /**
  1545.      * Remove accessibleUsers
  1546.      *
  1547.      * @param \App\Ox\HoardBundle\Entity\UserHoard $accessibleUsers
  1548.      */
  1549.     public function removeAccessibleUser(UserHoard $accessibleUsers)
  1550.     {
  1551.         $this->accessibleUsers->removeElement($accessibleUsers);
  1552.     }
  1553.     /**
  1554.      * Get accessibleUsers
  1555.      *
  1556.      * @return \Doctrine\Common\Collections\Collection
  1557.      */
  1558.     public function getAccessibleUsers()
  1559.     {
  1560.         return $this->accessibleUsers;
  1561.     }
  1562.     /**
  1563.      * Add coins
  1564.      *
  1565.      * @param \App\Ox\HoardBundle\Entity\Coin $coins
  1566.      * @return Hoard
  1567.      */
  1568.     public function addCoin(Coin $coins)
  1569.     {
  1570.         $this->coins[] = $coins;
  1571.         return $this;
  1572.     }
  1573.     /**
  1574.      * Remove coins
  1575.      *
  1576.      * @param \App\Ox\HoardBundle\Entity\Coin $coins
  1577.      */
  1578.     public function removeCoin(Coin $coins)
  1579.     {
  1580.         $this->coins->removeElement($coins);
  1581.     }
  1582.     /**
  1583.      * Get coins
  1584.      *
  1585.      * @return \Doctrine\Common\Collections\Collection
  1586.      */
  1587.     public function getCoins()
  1588.     {
  1589.         return $this->coins;
  1590.     }
  1591.     /**
  1592.      * Set coinCount
  1593.      *
  1594.      * @param integer $coinCount
  1595.      * @return Hoard
  1596.      */
  1597.     public function setCoinCount($coinCount)
  1598.     {
  1599.         $this->coinCount $coinCount;
  1600.         return $this;
  1601.     }
  1602.     /**
  1603.      * Get coinCount
  1604.      *
  1605.      * @return integer
  1606.      */
  1607.     public function getCoinCount()
  1608.     {
  1609.         return $this->coinCount;
  1610.     }
  1611.     /**
  1612.      * Set nameSimple
  1613.      *
  1614.      * @param integer $nameSimple
  1615.      * @return Hoard
  1616.      */
  1617.     public function setNameSimple($nameSimple)
  1618.     {
  1619.         $this->nameSimple $nameSimple;
  1620.         return $this;
  1621.     }
  1622.     /**
  1623.      * Get nameSimple
  1624.      *
  1625.      * @return string
  1626.      */
  1627.     public function getNameSimple()
  1628.     {
  1629.         return $this->nameSimple;
  1630.     }
  1631.     /**
  1632.      * Add containers
  1633.      *
  1634.      * @param \App\Ox\HoardBundle\Entity\Container $containers
  1635.      * @return Hoard
  1636.      */
  1637.     public function addContainer(Container $containers)
  1638.     {
  1639.         $this->containers[] = $containers;
  1640.         return $this;
  1641.     }
  1642.     /**
  1643.      * Remove containers
  1644.      *
  1645.      * @param \App\Ox\HoardBundle\Entity\Container $containers
  1646.      */
  1647.     public function removeContainer(Container $containers)
  1648.     {
  1649.         $this->containers->removeElement($containers);
  1650.     }
  1651.     /**
  1652.      * Get containers
  1653.      *
  1654.      * @return \Doctrine\Common\Collections\Collection
  1655.      */
  1656.     public function getContainers()
  1657.     {
  1658.         return $this->containers;
  1659.     }
  1660.     /**
  1661.      * Add hoardImages
  1662.      *
  1663.      * @param \App\Ox\HoardBundle\Entity\HoardImage $hoardImage
  1664.      * @return Hoard
  1665.      */
  1666.     public function addHoardImage(HoardImage $hoardImage)
  1667.     {
  1668.         $hoardImage->setHoard($this);
  1669.         $this->hoardImages[] = $hoardImage;
  1670.         return $this;
  1671.     }
  1672.     /**
  1673.      * Remove hoardImages
  1674.      *
  1675.      * @param \App\Ox\HoardBundle\Entity\HoardImage $hoardImage
  1676.      */
  1677.     public function removeHoardImage(HoardImage $hoardImage)
  1678.     {
  1679.         $this->hoardImages->removeElement($hoardImage);
  1680.     }
  1681.     /**
  1682.      * Get hoardImages
  1683.      *
  1684.      * @return \Doctrine\Common\Collections\Collection
  1685.      */
  1686.     public function getHoardImages()
  1687.     {
  1688.         return $this->hoardImages;
  1689.     }
  1690.     /**
  1691.      * Add hoardReferences
  1692.      *
  1693.      * @param \App\Ox\HoardBundle\Entity\HoardReference $hoardReferences
  1694.      * @return Hoard
  1695.      */
  1696.     public function addHoardReference(HoardReference $hoardReferences)
  1697.     {
  1698.         $this->hoardReferences[] = $hoardReferences;
  1699.         return $this;
  1700.     }
  1701.     /**
  1702.      * Remove hoardReferences
  1703.      *
  1704.      * @param \App\Ox\HoardBundle\Entity\HoardReference $hoardReferences
  1705.      */
  1706.     public function removeHoardReference(HoardReference $hoardReferences)
  1707.     {
  1708.         $this->hoardReferences->removeElement($hoardReferences);
  1709.     }
  1710.     /**
  1711.      * Get hoardReferences
  1712.      *
  1713.      * @return \Doctrine\Common\Collections\Collection
  1714.      */
  1715.     public function getHoardReferences()
  1716.     {
  1717.         return $this->hoardReferences;
  1718.     }
  1719.     /**
  1720.      * Add objects
  1721.      *
  1722.      * @param \App\Ox\HoardBundle\Entity\HObject $objects
  1723.      * @return Hoard
  1724.      */
  1725.     public function addObject(HObject $objects)
  1726.     {
  1727.         $this->objects[] = $objects;
  1728.         return $this;
  1729.     }
  1730.     /**
  1731.      * Remove objects
  1732.      *
  1733.      * @param \App\Ox\HoardBundle\Entity\HObject $objects
  1734.      */
  1735.     public function removeObject(HObject $objects)
  1736.     {
  1737.         $this->objects->removeElement($objects);
  1738.     }
  1739.     /**
  1740.      * Get objects
  1741.      *
  1742.      * @return \Doctrine\Common\Collections\Collection
  1743.      */
  1744.     public function getObjects()
  1745.     {
  1746.         return $this->objects;
  1747.     }
  1748.     /**
  1749.      * Set hoardType
  1750.      *
  1751.      * @param \App\Ox\HoardBundle\Entity\HoardType $hoardType
  1752.      * @return Hoard
  1753.      */
  1754.     public function setHoardType(HoardType $hoardType null)
  1755.     {
  1756.         $this->hoardType $hoardType;
  1757.         return $this;
  1758.     }
  1759.     /**
  1760.      * Get hoardType
  1761.      *
  1762.      * @return \App\Ox\HoardBundle\Entity\HoardType
  1763.      */
  1764.     public function getHoardType()
  1765.     {
  1766.         return $this->hoardType;
  1767.     }
  1768.     /**
  1769.     * Set province
  1770.     *
  1771.     * @param \App\Ox\HoardBundle\Entity\Province $province
  1772.     * @return Hoard
  1773.     */
  1774.    public function setProvince(Province $province null)
  1775.    {
  1776.        $this->province $province;
  1777.        return $this;
  1778.    }
  1779.     /**
  1780.      * Get province
  1781.      *
  1782.      * @return \App\Ox\HoardBundle\Entity\Province
  1783.      */
  1784.     public function getProvince()
  1785.     {
  1786.       return $this->province;
  1787.     }
  1788.     /**
  1789.      * Set findSpotLocationDetail
  1790.      *
  1791.      * @param \App\Ox\HoardBundle\Entity\FindSpotLocationDetail $findSpotLocationDetail
  1792.      * @return Hoard
  1793.      */
  1794.     public function setFindSpotLocationDetail(FindSpotLocationDetail $findSpotLocationDetail null)
  1795.     {
  1796.         $this->findSpotLocationDetail $findSpotLocationDetail;
  1797.         return $this;
  1798.     }
  1799.     /**
  1800.      * Get findSpotLocationDetail
  1801.      *
  1802.      * @return \App\Ox\HoardBundle\Entity\FindSpotLocationDetail
  1803.      */
  1804.     public function getFindSpotLocationDetail()
  1805.     {
  1806.         return $this->findSpotLocationDetail;
  1807.     }
  1808.     /**
  1809.      * Set ancientPlace
  1810.      *
  1811.      * @param \App\Ox\HoardBundle\Entity\AncientPlace $ancientPlace
  1812.      * @return Hoard
  1813.      */
  1814.     public function setAncientPlace(AncientPlace $ancientPlace null)
  1815.     {
  1816.         $this->ancientPlace $ancientPlace;
  1817.         return $this;
  1818.     }
  1819.     /**
  1820.      * Get ancientPlace
  1821.      *
  1822.      * @return \App\Ox\HoardBundle\Entity\AncientPlace
  1823.      */
  1824.     public function getAncientPlace()
  1825.     {
  1826.         return $this->ancientPlace;
  1827.     }
  1828.     /**
  1829.      * Set closingReign1
  1830.      *
  1831.      * @param \App\Ox\HoardBundle\Entity\Reign $closingReign1
  1832.      * @return Hoard
  1833.      */
  1834.     public function setClosingReign1(Reign $closingReign1 null)
  1835.     {
  1836.         $this->closingReign1 $closingReign1;
  1837.         return $this;
  1838.     }
  1839.     /**
  1840.      * Get closingReign1
  1841.      *
  1842.      * @return \App\Ox\HoardBundle\Entity\Reign
  1843.      */
  1844.     public function getClosingReign1()
  1845.     {
  1846.         return $this->closingReign1;
  1847.     }
  1848.     /**
  1849.      * Set closingReign2
  1850.      *
  1851.      * @param \App\Ox\HoardBundle\Entity\Reign $closingReign2
  1852.      * @return Hoard
  1853.      */
  1854.     public function setClosingReign2(Reign $closingReign2 null)
  1855.     {
  1856.         $this->closingReign2 $closingReign2;
  1857.         return $this;
  1858.     }
  1859.     /**
  1860.      * Get closingReign2
  1861.      *
  1862.      * @return \App\Ox\HoardBundle\Entity\Reign
  1863.      */
  1864.     public function getClosingReign2()
  1865.     {
  1866.         return $this->closingReign2;
  1867.     }
  1868.     /**
  1869.      * Set discoveryMethod
  1870.      *
  1871.      * @param \App\Ox\HoardBundle\Entity\DiscoveryMethod $discoveryMethod
  1872.      * @return Hoard
  1873.      */
  1874.     public function setDiscoveryMethod(DiscoveryMethod $discoveryMethod null)
  1875.     {
  1876.         $this->discoveryMethod $discoveryMethod;
  1877.         return $this;
  1878.     }
  1879.     /**
  1880.      * Get discoveryMethod
  1881.      *
  1882.      * @return \App\Ox\HoardBundle\Entity\DiscoveryMethod
  1883.      */
  1884.     public function getDiscoveryMethod()
  1885.     {
  1886.         return $this->discoveryMethod;
  1887.     }
  1888.     /**
  1889.      * Set discoveryLandUse
  1890.      *
  1891.      * @param \App\Ox\HoardBundle\Entity\DiscoveryLandUse $discoveryLandUse
  1892.      * @return Hoard
  1893.      */
  1894.     public function setDiscoveryLandUse(DiscoveryLandUse $discoveryLandUse null)
  1895.     {
  1896.         $this->discoveryLandUse $discoveryLandUse;
  1897.         return $this;
  1898.     }
  1899.     /**
  1900.      * Get discoveryLandUse
  1901.      *
  1902.      * @return \App\Ox\HoardBundle\Entity\DiscoveryLandUse
  1903.      */
  1904.     public function getDiscoveryLandUse()
  1905.     {
  1906.         return $this->discoveryLandUse;
  1907.     }
  1908.     /**
  1909.      * Set archaeologyRecoveryMethod
  1910.      *
  1911.      * @param \App\Ox\HoardBundle\Entity\ArchaeologyRecoveryMethod $archaeologyRecoveryMethod
  1912.      * @return Hoard
  1913.      */
  1914.     public function setArchaeologyRecoveryMethod(ArchaeologyRecoveryMethod $archaeologyRecoveryMethod null)
  1915.     {
  1916.         $this->archaeologyRecoveryMethod $archaeologyRecoveryMethod;
  1917.         return $this;
  1918.     }
  1919.     /**
  1920.      * Get archaeologyRecoveryMethod
  1921.      *
  1922.      * @return \App\Ox\HoardBundle\Entity\ArchaeologyRecoveryMethod
  1923.      */
  1924.     public function getArchaeologyRecoveryMethod()
  1925.     {
  1926.         return $this->archaeologyRecoveryMethod;
  1927.     }
  1928.     /**
  1929.      * Set archaeologySiteContext
  1930.      *
  1931.      * @param \App\Ox\HoardBundle\Entity\ArchaeologySiteContext $archaeologySiteContext
  1932.      * @return Hoard
  1933.      */
  1934.     public function setArchaeologySiteContext(ArchaeologySiteContext $archaeologySiteContext null)
  1935.     {
  1936.         $this->archaeologySiteContext $archaeologySiteContext;
  1937.         return $this;
  1938.     }
  1939.     /**
  1940.      * Get archaeologySiteContext
  1941.      *
  1942.      * @return \App\Ox\HoardBundle\Entity\ArchaeologySiteContext
  1943.      */
  1944.     public function getArchaeologySiteContext()
  1945.     {
  1946.         return $this->archaeologySiteContext;
  1947.     }
  1948.     /**
  1949.      * Add archaeologySiteContextDetail
  1950.      *
  1951.      * @param \App\Ox\HoardBundle\Entity\archaeologySiteContextDetail $archaeologySiteContextDetail
  1952.      * @return Hoard
  1953.      */
  1954.      public function addArchaeologySiteContextDetail(ArchaeologySiteContextDetail $archaeologySiteContextDetail)
  1955.      {
  1956.         $this->archaeologySiteContextDetails[] = $archaeologySiteContextDetail;
  1957.         
  1958.         return $this;
  1959.      }
  1960.      
  1961.      /**
  1962.       * Remove archaeologySiteContextDetail
  1963.       *
  1964.       * @param \App\Ox\HoardBundle\Entity\ArchaeologySiteContextDetail $archaeologySiteContextDetail
  1965.       * @return Hoard
  1966.       */
  1967.      public function removeArchaeologySiteContextDetail(ArchaeologySiteContextDetail $archaeologySiteContextDetail)
  1968.      {
  1969.         $this->archaeologySiteContextDetails->removeElement($archaeologySiteContextDetail);
  1970.         
  1971.         return $this;
  1972.      }
  1973.      
  1974.      /**
  1975.       * Get archaeologySiteContextDetails
  1976.       *
  1977.       * @return \Doctrine\Common\Collections\Collection
  1978.       */
  1979.      public function getArchaeologySiteContextDetails()
  1980.      {
  1981.         return $this->archaeologySiteContextDetails;
  1982.      }
  1983.      
  1984.     /**
  1985.      * Set archaeologyPeriod
  1986.      *
  1987.      * @param \App\Ox\HoardBundle\Entity\ArchaeologyPeriod $archaeologyPeriod
  1988.      * @return Hoard
  1989.      */
  1990.     public function setArchaeologyPeriod(ArchaeologyPeriod $archaeologyPeriod null)
  1991.     {
  1992.         $this->archaeologyPeriod $archaeologyPeriod;
  1993.         return $this;
  1994.     }
  1995.     /**
  1996.      * Get archaeologyPeriod
  1997.      *
  1998.      * @return \App\Ox\HoardBundle\Entity\ArchaeologyPeriod
  1999.      */
  2000.     public function getArchaeologyPeriod()
  2001.     {
  2002.         return $this->archaeologyPeriod;
  2003.     }
  2004.     /**
  2005.      * Add archaeologyContextNature
  2006.      *
  2007.      * @param \App\Ox\HoardBundle\Entity\ArchaeologyContextNature $archaeologyContextNature
  2008.      * @return Hoard
  2009.      */
  2010.      public function addArchaeologyContextNature(ArchaeologyContextNature $archaeologyContextNature)
  2011.      {
  2012.         $this->archaeologyContextNatures[] = $archaeologyContextNature;
  2013.         
  2014.         return $this;
  2015.      }
  2016.      
  2017.      /**
  2018.       * Remove archaeologyContextNature
  2019.       *
  2020.       * @param \App\Ox\HoardBundle\Entity\ArchaeologyContextNature $archaeologyContextNature
  2021.       * @return Hoard
  2022.       */
  2023.      public function removeArchaeologyContextNature(ArchaeologyContextNature $archaeologyContextNature)
  2024.      {
  2025.         $this->archaeologyContextNatures->removeElement($archaeologyContextNature);
  2026.         
  2027.         return $this;
  2028.      }
  2029.      
  2030.      /**
  2031.       * Get archaeologyContextNatures
  2032.       *
  2033.       * @return \Doctrine\Common\Collections\Collection
  2034.       */
  2035.      public function getArchaeologyContextNatures()
  2036.      {
  2037.         return $this->archaeologyContextNatures;
  2038.      }
  2039.     /**
  2040.      * Set archaeologyEndPeriod
  2041.      *
  2042.      * @param \App\Ox\HoardBundle\Entity\ArchaeologyPeriod $archaeologyEndPeriod
  2043.      * @return Hoard
  2044.      */
  2045.     public function setArchaeologyEndPeriod(ArchaeologyPeriod $archaeologyEndPeriod null)
  2046.     {
  2047.         $this->archaeologyEndPeriod $archaeologyEndPeriod;
  2048.         return $this;
  2049.     }
  2050.     /**
  2051.      * Get archaeologyEndPeriod
  2052.      *
  2053.      * @return \App\Ox\HoardBundle\Entity\ArchaeologyPeriod
  2054.      */
  2055.     public function getArchaeologyEndPeriod()
  2056.     {
  2057.         return $this->archaeologyEndPeriod;
  2058.     }
  2059.     /**
  2060.      * Set findSpotRating
  2061.      *
  2062.      * @param \App\Ox\HoardBundle\Entity\Rating $findSpotRating
  2063.      * @return Hoard
  2064.      */
  2065.     public function setFindSpotRating(Rating $findSpotRating null)
  2066.     {
  2067.         $this->findSpotRating $findSpotRating;
  2068.         return $this;
  2069.     }
  2070.     /**
  2071.      * Get findSpotRating
  2072.      *
  2073.      * @return \App\Ox\HoardBundle\Entity\Rating
  2074.      */
  2075.     public function getFindSpotRating()
  2076.     {
  2077.         return $this->findSpotRating;
  2078.     }
  2079.     /**
  2080.      * Set contextualRating
  2081.      *
  2082.      * @param \App\Ox\HoardBundle\Entity\Rating $contextualRating
  2083.      * @return Hoard
  2084.      */
  2085.     public function setContextualRating(Rating $contextualRating null)
  2086.     {
  2087.         $this->contextualRating $contextualRating;
  2088.         return $this;
  2089.     }
  2090.     /**
  2091.      * Get contextualRating
  2092.      *
  2093.      * @return \App\Ox\HoardBundle\Entity\Rating
  2094.      */
  2095.     public function getContextualRating()
  2096.     {
  2097.         return $this->contextualRating;
  2098.     }
  2099.     /**
  2100.      * Set rating
  2101.      *
  2102.      * @param \App\Ox\HoardBundle\Entity\Rating $rating
  2103.      * @return Hoard
  2104.      */
  2105.     public function setRating(Rating $rating null)
  2106.     {
  2107.         $this->rating $rating;
  2108.         return $this;
  2109.     }
  2110.     /**
  2111.      * Get rating
  2112.      *
  2113.      * @return \App\Ox\HoardBundle\Entity\Rating
  2114.      */
  2115.     public function getRating()
  2116.     {
  2117.         return $this->rating;
  2118.     }
  2119.     /**
  2120.      * Set hideWhat
  2121.      *
  2122.      * @param \App\Ox\HoardBundle\Entity\HideWhat $hideWhat
  2123.      * @return Hoard
  2124.      */
  2125.     public function setHideWhat(HideWhat $hideWhat null)
  2126.     {
  2127.         $this->hideWhat $hideWhat;
  2128.         return $this;
  2129.     }
  2130.     /**
  2131.      * Get hideWhat
  2132.      *
  2133.      * @return \App\Ox\HoardBundle\Entity\HideWhat
  2134.      */
  2135.     public function getHideWhat()
  2136.     {
  2137.         return $this->hideWhat;
  2138.     }
  2139.     /**
  2140.      * Get hideLocation
  2141.      *
  2142.      * @return boolean
  2143.      */
  2144.     public function getHideLocation()
  2145.     {
  2146.         return $this->hideLocation;
  2147.     }
  2148.     /**
  2149.      * Set hideLocation
  2150.      *
  2151.      * @param boolean $hideLocation
  2152.      * @return Hoard
  2153.      */
  2154.     public function setHideLocation($hideLocation)
  2155.     {
  2156.         $this->hideLocation $hideLocation;
  2157.         return $this;
  2158.     }
  2159.     /**
  2160.      * Set hideFrom
  2161.      *
  2162.      * @param \App\Ox\HoardBundle\Entity\HideFrom $hideFrom
  2163.      * @return Hoard
  2164.      */
  2165.     public function setHideFrom(HideFrom $hideFrom null)
  2166.     {
  2167.         $this->hideFrom $hideFrom;
  2168.         return $this;
  2169.     }
  2170.     /**
  2171.      * Get hideFrom
  2172.      *
  2173.      * @return \App\Ox\HoardBundle\Entity\HideFrom
  2174.      */
  2175.     public function getHideFrom()
  2176.     {
  2177.         return $this->hideFrom;
  2178.     }
  2179.     /**
  2180.      * Get hideCity
  2181.      *
  2182.      * @return boolean
  2183.      */
  2184.     public function getHideCity()
  2185.     {
  2186.         return $this->hideCity;
  2187.     }
  2188.     /**
  2189.      * Set hideCity
  2190.      *
  2191.      * @param boolean $hideCity
  2192.      * @return Hoard
  2193.      */
  2194.     public function setHideCity($hideCity)
  2195.     {
  2196.         $this->hideCity $hideCity;
  2197.         return $this;
  2198.     }
  2199.     /**
  2200.      * Get hideCounty
  2201.      *
  2202.      * @return boolean
  2203.      */
  2204.     public function getHideCounty()
  2205.     {
  2206.         return $this->hideCounty;
  2207.     }
  2208.     /**
  2209.      * Set hideCounty
  2210.      *
  2211.      * @param boolean $hideCounty
  2212.      * @return Hoard
  2213.      */
  2214.     public function setHideCounty($hideCounty)
  2215.     {
  2216.         $this->hideCounty $hideCounty;
  2217.         return $this;
  2218.     }
  2219.     /**
  2220.      * Get hideFinder
  2221.      *
  2222.      * @return boolean
  2223.      */
  2224.     public function getHideFinder()
  2225.     {
  2226.         return $this->hideFinder;
  2227.     }
  2228.     /**
  2229.      * Set hideFinder
  2230.      *
  2231.      * @param boolean $hideFinder
  2232.      * @return Hoard
  2233.      */
  2234.     public function setHideFinder($hideFinder)
  2235.     {
  2236.         $this->hideFinder $hideFinder;
  2237.         return $this;
  2238.     }
  2239.     /**
  2240.      * Set credit
  2241.      *
  2242.      * @param string $credit
  2243.      * @return Hoard
  2244.      */
  2245.     public function setCredit($credit)
  2246.     {
  2247.         $this->credit $credit;
  2248.         return $this;
  2249.     }
  2250.     /**
  2251.      * Get credit
  2252.      *
  2253.      * @return string
  2254.      */
  2255.     public function getCredit()
  2256.     {
  2257.         if ($this->credit !== null) {
  2258.             return $this->credit;
  2259.         } else {
  2260.             $defaultValue "";
  2261.             if ($this->getCreated() !== null) {
  2262.                 $defaultValue $defaultValue "Created by "$this->getCreated() .". ";
  2263.             }
  2264.             if ($this->getModified() !== null) {
  2265.                 $defaultValue $defaultValue "Last modified by "$this->getModified() .".";
  2266.             }
  2267.             return $defaultValue;
  2268.         }
  2269.     }
  2270.     /**
  2271.      * Mark Unvalidated by admin
  2272.      *
  2273.      * The current entity or a related entity has changed, so mark it as no longer validated
  2274.      */
  2275.     public function markUnvalidatedByAdmin()
  2276.     {
  2277.         $this->setValidatedByAdmin(false);
  2278.     }
  2279.     
  2280.     /**
  2281.      * Add country
  2282.      *
  2283.      * @param \App\Ox\HoardBundle\Entity\Country $country
  2284.      * @return Hoard
  2285.      */
  2286.      public function addCountry(Country $country)
  2287.      {
  2288.         $this->countries[] = $country;
  2289.         
  2290.         return $this;
  2291.      }
  2292.      
  2293.      /**
  2294.       * Remove country
  2295.       *
  2296.       * @param \App\Ox\HoardBundle\Entity\Country $country
  2297.       * @return Hoard
  2298.       */
  2299.      public function removeCountry(Country $country)
  2300.      {
  2301.         $this->countries->removeElement($country);
  2302.         
  2303.         return $this;
  2304.      }
  2305.      
  2306.      /**
  2307.       * Get countries
  2308.       *
  2309.       * @return \Doctrine\Common\Collections\Collection
  2310.       */
  2311.      public function getCountries()
  2312.      {
  2313.         return $this->countries;
  2314.      }
  2315.      
  2316.      /**
  2317.       * Set redirectToHoard
  2318.       *
  2319.       * @param integer redirectToHoard
  2320.       * @return Hoard
  2321.       */
  2322.      public function setRedirectToHoard($redirectToHoard)
  2323.      {
  2324.          $this->redirectToHoard $redirectToHoard;
  2325.      
  2326.          return $this;
  2327.      }
  2328.      /**
  2329.       * Get redirectToHoard
  2330.       *
  2331.       * @return integer 
  2332.       */
  2333.      public function getRedirectToHoard()
  2334.      {
  2335.          return $this->redirectToHoard;
  2336.      }
  2337.      
  2338.      /**
  2339.       * Set internalNote
  2340.       *
  2341.       * @param string $internalNote
  2342.       * 
  2343.       */
  2344.      public function setInternalNote($internalNote)
  2345.      {
  2346.          $this->internalNote $internalNote;
  2347.      
  2348.          return $this;
  2349.      }
  2350.  
  2351.      /**
  2352.       * Get internalNote
  2353.       *
  2354.       * @return string 
  2355.       */
  2356.      public function getInternalNote()
  2357.      {
  2358.          return $this->internalNote;
  2359.      }
  2360.     public function setClosingReign1Date($closingReign1Date) {
  2361.          $this->closingReign1Date $closingReign1Date;
  2362.          return $this;
  2363.      }
  2364.     public function getClosingReign1Date() {
  2365.         return $this->closingReign1Date;
  2366.     }
  2367.     public function setClosingReign2Date($closingReign2Date) {
  2368.         $this->closingReign2Date $closingReign2Date;
  2369.         return $this;
  2370.     }
  2371.     public function getClosingReign2Date() {
  2372.         return $this->closingReign2Date;
  2373.     }
  2374.     public function setClosingReign1Label($closingReign1Label) {
  2375.         $this->closingReign1Label $closingReign1Label;
  2376.         return $this;
  2377.     }
  2378.     public function getClosingReign1Label() {
  2379.         return $this->closingReign1Label;
  2380.     }
  2381.     public function setClosingReign2Label($closingReign2Label) {
  2382.         $this->closingReign2Label $closingReign2Label;
  2383.         return $this;
  2384.     }
  2385.     public function getClosingReign2Label() {
  2386.         return $this->closingReign2Label;
  2387.     }
  2388.     public function setArchaeologySiteContextName($archaeologySiteContextName) {
  2389.         $this->archaeologySiteContextName $archaeologySiteContextName;
  2390.         return $this;
  2391.     }
  2392.     public function getArchaeologySiteContextName() {
  2393.         return $this->archaeologySiteContextName;
  2394.     }
  2395.     public function setArchaeologySiteContextSortOrder($archaeologySiteContextSortOrder) {
  2396.         $this->archaeologySiteContextSortOrder $archaeologySiteContextSortOrder;
  2397.         return $this;
  2398.     }
  2399.     public function getArchaeologySiteContextSortOrder() {
  2400.         return $this->archaeologySiteContextSortOrder;
  2401.     }
  2402.     public function setHoardCoins($hoardCoins) {
  2403.         $this->hoardCoins $hoardCoins;
  2404.         return $this;
  2405.     }
  2406.     public function getHoardCoins() {
  2407.         return $this->hoardCoins;
  2408.     }
  2409. }