app/Plugin/SEOAllOne42/Entity/SEOAllOneProduct.php line 16

Open in your IDE?
  1. <?php
  2. namespace Plugin\SEOAllOne42\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * SEOAllOneProduct
  6.  * 
  7.  * @ORM\Table(name="plg_seoallone_product")
  8.  * @ORM\InheritanceType("SINGLE_TABLE")
  9.  * @ORM\DiscriminatorColumn(name="discriminator_type", type="string", length=255)
  10.  * @ORM\HasLifecycleCallbacks()
  11.  * @ORM\Entity(repositoryClass="Plugin\SEOAllOne42\Repository\SEOAllOneProductRepository")
  12.  */
  13. class SEOAllOneProduct extends \Eccube\Entity\AbstractEntity
  14. {
  15.     /**
  16.      * @var int
  17.      * 
  18.      * @ORM\Column(name="id", type="integer", options={"unsigned":true})
  19.      * @ORM\Id
  20.      * @ORM\GeneratedValue(strategy="IDENTITY")
  21.      */
  22.     private $id;
  23.     /**
  24.      * @var \Eccube\Entity\Product
  25.      * @ORM\OneToOne(targetEntity="\Eccube\Entity\Product")
  26.      * @ORM\JoinColumns({
  27.      *  @ORM\JoinColumn(name="product_id", referencedColumnName="id", onDelete="CASCADE")
  28.      * })
  29.      */
  30.     private $Product;
  31.     /**
  32.      * @var int
  33.      *
  34.      * @ORM\Column(name="global_id_type", type="integer", nullable=true)
  35.      */
  36.     private $global_id_type;
  37.  
  38.     /**
  39.      * @var string
  40.      * 
  41.      * @ORM\Column(name="global_id", type="string", nullable=true, length=255)
  42.      */
  43.      private $global_id;
  44.     /**
  45.      * @var int
  46.      *
  47.      * @ORM\Column(name="valid_price_month", type="integer", nullable=true)
  48.      */
  49.     private $valid_price_month;
  50.     /**
  51.      * @var string
  52.      * 
  53.      * @ORM\Column(name="title", type="text", nullable=true)
  54.      */
  55.     private $title;
  56.     /**
  57.      * @var string
  58.      * 
  59.      * @ORM\Column(name="author", type="text", nullable=true)
  60.      */
  61.     private $author;
  62.     /**
  63.      * @var string
  64.      * 
  65.      * @ORM\Column(name="description", type="text", nullable=true)
  66.      */
  67.     private $description;
  68.     /**
  69.      * @var string
  70.      * 
  71.      * @ORM\Column(name="keyword", type="text", nullable=true)
  72.      */
  73.     private $keyword;
  74.     /**
  75.      * @var string
  76.      * 
  77.      * @ORM\Column(name="canonical", type="text", nullable=true)
  78.      */
  79.     private $canonical;
  80.     /**
  81.      * @var string
  82.      * 
  83.      * @ORM\Column(name="og_title", type="text", nullable=true)
  84.      */
  85.     private $og_title;
  86.      /**
  87.       * @var string
  88.       * 
  89.       * @ORM\Column(name="og_description", type="text", nullable=true)
  90.       */
  91.     private $og_description;
  92.  
  93.     /**
  94.      * @var string
  95.      * 
  96.      * @ORM\Column(name="og_site_name", type="string", nullable=true, length=255)
  97.      */
  98.      private $og_site_name;
  99.      /**
  100.       * @var string
  101.       * 
  102.       * @ORM\Column(name="og_type", type="string", nullable=true, length=255)
  103.       */
  104.      private $og_type;
  105.  
  106.  
  107.      /**
  108.       * @var string
  109.       * 
  110.       * @ORM\Column(name="og_url", type="text", nullable=true, length=65535)
  111.       */
  112.      private $og_url;
  113.  
  114.      /**
  115.       * @var string
  116.       * 
  117.       * @ORM\Column(name="og_image", type="text", nullable=true, length=65535)
  118.       */
  119.      private $og_image;
  120.     /**
  121.      * @var int
  122.      * 
  123.      * @ORM\Column(name="noindex_flg", type="smallint", options={"unsigned":true})
  124.      */
  125.     private $noindex_flg 0;
  126.     /**
  127.      * @var string
  128.      * 
  129.      * @ORM\Column(name="redirect_url", type="text", nullable=true)
  130.      */
  131.     private $redirect_url;
  132.     /**
  133.      * @var int
  134.      * 
  135.      * @ORM\Column(name="del_flg", type="smallint", options={"unsigned":true})
  136.      */
  137.     private $del_flg;
  138.     /**
  139.      * @var \DateTime
  140.      *
  141.      * @ORM\Column(name="create_date", type="datetimetz")
  142.      */
  143.     private $create_date;
  144.     /**
  145.      * @var \DateTime
  146.      *
  147.      * @ORM\Column(name="update_date", type="datetimetz")
  148.      */
  149.     private $update_date;
  150.     /**
  151.      * @var int
  152.      *
  153.      * @ORM\Column(name="updated_flg", type="boolean", options={"default":false})
  154.      */
  155.     private $updated_flg;
  156.     /**
  157.      * Constructor
  158.      */
  159.     public function __construct()
  160.     {
  161.     }
  162.     /**
  163.      * @return int
  164.      */
  165.     public function getId()
  166.     {
  167.         return $this->id;
  168.     }
  169.     /**
  170.      * Set global_id_type
  171.      *
  172.      * @param integer $global_id_type
  173.      * @return $this;
  174.      */
  175.     public function setGlobalIdType($global_id_type)
  176.     {
  177.         $this->global_id_type $global_id_type;
  178.         return $this;
  179.     }
  180.     /**
  181.      * Get global_id_type
  182.      *
  183.      * @return integer 
  184.      */
  185.     public function getGlobalIdType()
  186.     {
  187.         return $this->global_id_type;
  188.     }
  189.     /**
  190.      * @return string
  191.      */
  192.     public function getGlobalId()
  193.     {
  194.         return $this->global_id;
  195.     }
  196.     /**
  197.      * @param string $global_id
  198.      * 
  199.      * @return $this;
  200.      */
  201.     public function setGlobalId($global_id)
  202.     {
  203.         $this->global_id $global_id;
  204.         return $this;
  205.     }
  206.     /**
  207.      * Set valid_price_month
  208.      *
  209.      * @param integer $valid_price_month
  210.      * @return $this;
  211.      */
  212.     public function setValidPriceMonth($valid_price_month)
  213.     {
  214.         $this->valid_price_month $valid_price_month;
  215.         return $this;
  216.     }
  217.     /**
  218.      * Get valid_price_month
  219.      *
  220.      * @return integer 
  221.      */
  222.     public function getValidPriceMonth()
  223.     {
  224.         return $this->valid_price_month;
  225.     }
  226.     /**
  227.      * @return string
  228.      */
  229.     public function getTitle()
  230.     {
  231.         return $this->title;
  232.     }
  233.     /**
  234.      * @param string $title
  235.      * 
  236.      * @return $this;
  237.      */
  238.     public function setTitle($title)
  239.     {
  240.         $this->title $title;
  241.         return $this;
  242.     }
  243.     /**
  244.      * @return string
  245.      */
  246.     public function getAuthor()
  247.     {
  248.         return $this->author;
  249.     }
  250.     /**
  251.      * @param string $author
  252.      * 
  253.      * @return $this;
  254.      */
  255.     public function setAuthor($author)
  256.     {
  257.         $this->author $author;
  258.         return $this;
  259.     }
  260.     /**
  261.      * @return string
  262.      */
  263.     public function getDescription()
  264.     {
  265.         return $this->description;
  266.     }
  267.     /**
  268.      * @param string $description
  269.      * 
  270.      * @return $this;
  271.      */
  272.     public function setDescription($description)
  273.     {
  274.         $this->description $description;
  275.         return $this;
  276.     }
  277.     /**
  278.      * @return string
  279.      */
  280.     public function getKeyword()
  281.     {
  282.         return $this->keyword;
  283.     }
  284.     /**
  285.      * @param string $keyword
  286.      * 
  287.      * @return $this;
  288.      */
  289.     public function setKeyword($keyword)
  290.     {
  291.         $this->keyword $keyword;
  292.         return $this;
  293.     }
  294.     /**
  295.      * @return string
  296.      */
  297.     public function getCanonical()
  298.     {
  299.         return $this->canonical;
  300.     }
  301.     /**
  302.      * @param string $canonical
  303.      * 
  304.      * @return $this;
  305.      */
  306.     public function setCanonical($canonical)
  307.     {
  308.         $this->canonical $canonical;
  309.         return $this;
  310.     }
  311.     /**
  312.      * @return string
  313.      */
  314.      public function getOGTitle()
  315.     {
  316.         return $this->og_title;
  317.     }
  318.  
  319.      /**
  320.       * @param string $og_title
  321.       * 
  322.       * @return $this;
  323.       */
  324.      public function setOGTitle($og_title)
  325.     {
  326.         $this->og_title $og_title;
  327.         return $this;
  328.     }
  329.     /**
  330.      * @return string
  331.      */
  332.      public function getOGDescription()
  333.     {
  334.         return $this->og_description;
  335.     }
  336.  
  337.      /**
  338.       * @param string $og_description
  339.       * 
  340.       * @return $this;
  341.       */
  342.      public function setOGDescription($og_description)
  343.     {
  344.         $this->og_description $og_description;
  345.         return $this;
  346.     }
  347.     /**
  348.      * @return string
  349.      */
  350.     public function getOGSiteName()
  351.     {
  352.         return $this->og_site_name;
  353.     }
  354.  
  355.      /**
  356.       * @param string $og_site_name
  357.       * 
  358.       * @return $this;
  359.       */
  360.     public function setOGSiteName($og_site_name)
  361.     {
  362.         $this->og_site_name $og_site_name;
  363.         return $this;
  364.     }
  365.     /**
  366.      * @return string
  367.      */
  368.     public function getOGType()
  369.     {
  370.         return $this->og_type;
  371.     }
  372.  
  373.      /**
  374.       * @param string $og_type
  375.       * 
  376.       * @return $this;
  377.       */
  378.     public function setOGType($og_type)
  379.     {
  380.         $this->og_type $og_type;
  381.         return $this;
  382.     }
  383.     /**
  384.      * @return string
  385.      */
  386.     public function getOGUrl()
  387.     {
  388.         return $this->og_url;
  389.     }
  390.  
  391.      /**
  392.       * @param string $og_url
  393.       * 
  394.       * @return $this;
  395.       */
  396.     public function setOGUrl($og_url)
  397.     {
  398.         $this->og_url $og_url;
  399.         return $this;
  400.     }
  401.     /**
  402.      * @return string
  403.      */
  404.     public function getOGImage()
  405.     {
  406.         return $this->og_image;
  407.     }
  408.  
  409.      /**
  410.       * @param string $og_image
  411.       * 
  412.       * @return $this;
  413.       */
  414.     public function setOGImage($og_image)
  415.     {
  416.         $this->og_image $og_image;
  417.         return $this;
  418.     }
  419.     /**
  420.      * @param \Eccube\Entity\Product $product
  421.      * 
  422.      * @return $this;
  423.      */
  424.     public function setProduct(\Eccube\Entity\Product $product)
  425.     {
  426.         $this->Product $product;
  427.         return $this;
  428.     }
  429.     /**
  430.      * @return \Eccube\Entity\Product
  431.      */
  432.     public function getProduct()
  433.     {
  434.         return $this->Product;
  435.     }
  436.     /**
  437.      * Set noindex_flg
  438.      * 
  439.      * @param integer $noindex_flg
  440.      * @return $this;
  441.      */
  442.     public function setNoindexFlg($noindex_flg)
  443.     {
  444.         $this->noindex_flg $noindex_flg;
  445.         return $this;
  446.     }
  447.     /**
  448.      * Get noindex_flg
  449.      * 
  450.      * @return integer
  451.      */
  452.     public function getNoindexFlg()
  453.     {
  454.         return $this->noindex_flg;
  455.     }
  456.     /**
  457.      * Set redirect_url
  458.      * 
  459.      * @param string $redirect_url
  460.      * @return $this;
  461.      */
  462.     public function setRedirectUrl($redirect_url)
  463.     {
  464.         $this->redirect_url $redirect_url;
  465.         return $this;
  466.     }
  467.     /**
  468.      * Get redirect_url
  469.      * 
  470.      * @return string
  471.      */
  472.     public function getRedirectUrl()
  473.     {
  474.         return $this->redirect_url;
  475.     }
  476.     /**
  477.      * Set del_flg
  478.      *
  479.      * @param integer $delFlg
  480.      * @return $this;
  481.      */
  482.     public function setDelFlg($delFlg)
  483.     {
  484.         $this->del_flg $delFlg;
  485.         return $this;
  486.     }
  487.     /**
  488.      * Get del_flg
  489.      *
  490.      * @return integer 
  491.      */
  492.     public function getDelFlg()
  493.     {
  494.         return $this->del_flg;
  495.     }
  496.     /**
  497.      * Set create_date
  498.      *
  499.      * @param \DateTime $createDate
  500.      * @return $this
  501.      */
  502.     public function setCreateDate($createDate)
  503.     {
  504.         $this->create_date $createDate;
  505.         return $this;
  506.     }
  507.     /**
  508.      * Get create_date
  509.      *
  510.      * @return \DateTime 
  511.      */
  512.     public function getCreateDate()
  513.     {
  514.         return $this->create_date;
  515.     }
  516.     /**
  517.      * Set update_date
  518.      *
  519.      * @param \DateTime $updateDate
  520.      * @return $this
  521.      */
  522.     public function setUpdateDate($updateDate)
  523.     {
  524.         $this->update_date $updateDate;
  525.         return $this;
  526.     }
  527.     /**
  528.      * Get update_date
  529.      *
  530.      * @return \DateTime 
  531.      */
  532.     public function getUpdateDate()
  533.     {
  534.         return $this->update_date;
  535.     }
  536.     /**
  537.      * Set updated_flg
  538.      *
  539.      * @param boolean $updated_flg
  540.      * @return $this;
  541.      */
  542.     public function setUpdatedFlg($updated_flg)
  543.     {
  544.         $this->updated_flg $updated_flg;
  545.         return $this;
  546.     }
  547.     /**
  548.      * Get updated_flg
  549.      *
  550.      * @return boolean 
  551.      */
  552.     public function getUpdatedFlg()
  553.     {
  554.         return $this->updated_flg;
  555.     }
  556. }
  557. ?>