Model/Tag.php
changeset 2 13f43f53d0ba
child 5 45378793512a
equal deleted inserted replaced
1:06a22ff5d58d 2:13f43f53d0ba
       
     1 <?php
       
     2 /*
       
     3  * This file is part of the WikiTagBundle package.
       
     4  *
       
     5  * (c) IRI <http://www.iri.centrepompidou.fr/>
       
     6  *
       
     7  * For the full copyright and license information, please view the LICENSE
       
     8  * file that was distributed with this source code.
       
     9  */
       
    10  namespace IRI\Bundle\WikiTagBundle\Model;
       
    11  
       
    12  abstract class Tag implements TagInterface {
       
    13     
       
    14     public static $TAG_URL_STATUS_DICT = array('null_result'=>0,'redirection'=>1,'homonyme'=>2,'match'=>3);
       
    15      
       
    16     /**
       
    17      * @var integer $id
       
    18      */
       
    19     protected $id;
       
    20 
       
    21     /**
       
    22      * @var string $label
       
    23      */
       
    24     protected $label;
       
    25 
       
    26     /**
       
    27      * @var string $normalizedLabel
       
    28      */
       
    29     protected $normalizedLabel;
       
    30 
       
    31     /**
       
    32      * @var string $originalLabel
       
    33      */
       
    34     protected $originalLabel;
       
    35 
       
    36     /**
       
    37      * @var string $alias
       
    38      */
       
    39     protected $alias;
       
    40 
       
    41     /**
       
    42      * @var string $wikipediaUrl
       
    43      */
       
    44     protected $wikipediaUrl;
       
    45 
       
    46     /**
       
    47      * @var bigint $wikipediaPageId
       
    48      */
       
    49     protected $wikipediaPageId;
       
    50 
       
    51     /**
       
    52      * @var smallint $urlStatus
       
    53      */
       
    54     protected $urlStatus;
       
    55 
       
    56     /**
       
    57      * @var string $dbpediaUri
       
    58      */
       
    59     protected $dbpediaUri;
       
    60 
       
    61     /**
       
    62      * @var integer $popularity
       
    63      */
       
    64     protected $popularity = 0;
       
    65 
       
    66     /**
       
    67      * @var object $category
       
    68      */
       
    69     protected $category;
       
    70 
       
    71 
       
    72     /**
       
    73      * Get id
       
    74      *
       
    75      * @return integer
       
    76      */
       
    77     public function getId()
       
    78     {
       
    79         return $this->id;
       
    80     }
       
    81 
       
    82     /**
       
    83      * Set label
       
    84      *
       
    85      * @param string $label
       
    86      */
       
    87     public function setLabel($label)
       
    88     {
       
    89         $this->label = $label;
       
    90     }
       
    91 
       
    92     /**
       
    93      * Get label
       
    94      *
       
    95      * @return string
       
    96      */
       
    97     public function getLabel()
       
    98     {
       
    99         return $this->label;
       
   100     }
       
   101 
       
   102     /**
       
   103      * Set normalizedLabel
       
   104      *
       
   105      * @param string $normalizedLabel
       
   106      */
       
   107     public function setNormalizedLabel($normalizedLabel)
       
   108     {
       
   109         $this->normalizedLabel = $normalizedLabel;
       
   110     }
       
   111 
       
   112     /**
       
   113      * Get normalizedLabel
       
   114      *
       
   115      * @return string
       
   116      */
       
   117     public function getNormalizedLabel()
       
   118     {
       
   119         return $this->normalizedLabel;
       
   120     }
       
   121 
       
   122     /**
       
   123      * Set originalLabel
       
   124      *
       
   125      * @param string $originalLabel
       
   126      */
       
   127     public function setOriginalLabel($originalLabel)
       
   128     {
       
   129         $this->originalLabel = $originalLabel;
       
   130     }
       
   131 
       
   132     /**
       
   133      * Get originalLabel
       
   134      *
       
   135      * @return string
       
   136      */
       
   137     public function getOriginalLabel()
       
   138     {
       
   139         return $this->originalLabel;
       
   140     }
       
   141 
       
   142     /**
       
   143      * Set alias
       
   144      *
       
   145      * @param string $alias
       
   146      */
       
   147     public function setAlias($alias)
       
   148     {
       
   149         $this->alias = $alias;
       
   150     }
       
   151 
       
   152     /**
       
   153      * Get alias
       
   154      *
       
   155      * @return string
       
   156      */
       
   157     public function getAlias()
       
   158     {
       
   159         return $this->alias;
       
   160     }
       
   161 
       
   162     /**
       
   163      * Set wikipediaUrl
       
   164      *
       
   165      * @param string $wikipediaUrl
       
   166      */
       
   167     public function setWikipediaUrl($wikipediaUrl)
       
   168     {
       
   169         $this->wikipediaUrl = $wikipediaUrl;
       
   170     }
       
   171 
       
   172     /**
       
   173      * Get wikipediaUrl
       
   174      *
       
   175      * @return string
       
   176      */
       
   177     public function getWikipediaUrl()
       
   178     {
       
   179         return $this->wikipediaUrl;
       
   180     }
       
   181 
       
   182     /**
       
   183      * Set wikipediaPageId
       
   184      *
       
   185      * @param bigint $wikipediaPageId
       
   186      */
       
   187     public function setWikipediaPageId($wikipediaPageId)
       
   188     {
       
   189         $this->wikipediaPageId = $wikipediaPageId;
       
   190     }
       
   191 
       
   192     /**
       
   193      * Get wikipediaPageId
       
   194      *
       
   195      * @return bigint
       
   196      */
       
   197     public function getWikipediaPageId()
       
   198     {
       
   199         return $this->wikipediaPageId;
       
   200     }
       
   201 
       
   202     /**
       
   203      * Set urlStatus
       
   204      *
       
   205      * @param smallint $urlStatus
       
   206      */
       
   207     public function setUrlStatus($urlStatus)
       
   208     {
       
   209         $this->urlStatus = $urlStatus;
       
   210     }
       
   211 
       
   212     /**
       
   213      * Get urlStatus
       
   214      *
       
   215      * @return smallint
       
   216      */
       
   217     public function getUrlStatus()
       
   218     {
       
   219         return $this->urlStatus;
       
   220     }
       
   221 
       
   222     /**
       
   223      * Set dbpediaUri
       
   224      *
       
   225      * @param string $dbpediaUri
       
   226      */
       
   227     public function setDbpediaUri($dbpediaUri)
       
   228     {
       
   229         $this->dbpediaUri = $dbpediaUri;
       
   230     }
       
   231 
       
   232     /**
       
   233      * Get dbpediaUri
       
   234      *
       
   235      * @return string
       
   236      */
       
   237     public function getDbpediaUri()
       
   238     {
       
   239         return $this->dbpediaUri;
       
   240     }
       
   241 
       
   242     /**
       
   243      * Set popularity
       
   244      *
       
   245      * @param integer $popularity
       
   246      */
       
   247     public function setPopularity($popularity)
       
   248     {
       
   249         $this->popularity = $popularity;
       
   250     }
       
   251 
       
   252     /**
       
   253      * Get popularity
       
   254      *
       
   255      * @return integer
       
   256      */
       
   257     public function getPopularity()
       
   258     {
       
   259         return $this->popularity;
       
   260     }
       
   261 
       
   262 
       
   263      
       
   264  }