modules/NovaHorizons/Redirects/src/Model/Redirect.php line 16

Open in your IDE?
  1. <?php
  2. /**
  3.  * Copyright (c) 2001-present X-Cart Holdings LLC. All rights reserved.
  4.  * See https://www.x-cart.com/license-agreement.html for license details.
  5.  */
  6. namespace NovaHorizons\Redirects\Model;
  7. use Doctrine\ORM\Mapping as ORM;
  8. /**
  9.  * @ORM\Entity (repositoryClass="\NovaHorizons\Redirects\Model\Repo\Redirect")
  10.  * @ORM\Table (name="redirect")
  11.  */
  12. class Redirect extends \XLite\Model\AEntity
  13. {
  14.     /**
  15.      * @ORM\Id
  16.      * @ORM\GeneratedValue (strategy="AUTO")
  17.      * @ORM\Column         (type="integer")
  18.      */
  19.     protected $id;
  20.     /**
  21.      * @ORM\Column (type="boolean")
  22.      */
  23.     protected $enabled true;
  24.     /**
  25.      * @ORM\Column (type="string")
  26.      */
  27.     protected $path '';
  28.     /**
  29.      * @ORM\Column (type="string")
  30.      */
  31.     protected $target '';
  32.     /**
  33.      * @return mixed
  34.      */
  35.     public function getId()
  36.     {
  37.         return $this->id;
  38.     }
  39.     /**
  40.      * @param mixed $id
  41.      * @return static
  42.      */
  43.     public function setId($id)
  44.     {
  45.         $this->id $id;
  46.         return $this;
  47.     }
  48.     /**
  49.      * @return mixed
  50.      */
  51.     public function getEnabled()
  52.     {
  53.         return $this->enabled;
  54.     }
  55.     /**
  56.      * @param mixed $enabled
  57.      * @return static
  58.      */
  59.     public function setEnabled($enabled)
  60.     {
  61.         $this->enabled $enabled;
  62.         return $this;
  63.     }
  64.     /**
  65.      * @return mixed
  66.      */
  67.     public function getPath()
  68.     {
  69.         return $this->path;
  70.     }
  71.     /**
  72.      * @param mixed $path
  73.      * @return static
  74.      */
  75.     public function setPath($path)
  76.     {
  77.         $this->path $path;
  78.         return $this;
  79.     }
  80.     /**
  81.      * @return mixed
  82.      */
  83.     public function getTarget()
  84.     {
  85.         return $this->target;
  86.     }
  87.     /**
  88.      * @param mixed $target
  89.      * @return static
  90.      */
  91.     public function setTarget($target)
  92.     {
  93.         $this->target $target;
  94.         return $this;
  95.     }
  96. }