vendor/sulu/sulu/src/Sulu/Bundle/ContactBundle/Entity/ContactLocale.php line 17

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of Sulu.
  4.  *
  5.  * (c) Sulu GmbH
  6.  *
  7.  * This source file is subject to the MIT license that is bundled
  8.  * with this source code in the file LICENSE.
  9.  */
  10. namespace Sulu\Bundle\ContactBundle\Entity;
  11. /**
  12.  * ContactLocale.
  13.  */
  14. class ContactLocale
  15. {
  16.     /**
  17.      * @var string
  18.      */
  19.     private $locale;
  20.     /**
  21.      * @var int
  22.      */
  23.     private $id;
  24.     /**
  25.      * @var ContactInterface
  26.      */
  27.     private $contact;
  28.     /**
  29.      * Set locale.
  30.      *
  31.      * @param string $locale
  32.      *
  33.      * @return ContactLocale
  34.      */
  35.     public function setLocale($locale)
  36.     {
  37.         $this->locale $locale;
  38.         return $this;
  39.     }
  40.     /**
  41.      * Get locale.
  42.      *
  43.      * @return string
  44.      */
  45.     public function getLocale()
  46.     {
  47.         return $this->locale;
  48.     }
  49.     /**
  50.      * Get id.
  51.      *
  52.      * @return int
  53.      */
  54.     public function getId()
  55.     {
  56.         return $this->id;
  57.     }
  58.     /**
  59.      * Set contact.
  60.      *
  61.      * @return ContactLocale
  62.      */
  63.     public function setContact(ContactInterface $contact)
  64.     {
  65.         $this->contact $contact;
  66.         return $this;
  67.     }
  68.     /**
  69.      * Get contact.
  70.      *
  71.      * @return ContactInterface
  72.      */
  73.     public function getContact()
  74.     {
  75.         return $this->contact;
  76.     }
  77. }