Model/Tag.php
author ymh <ymh.work@gmail.com>
Sun, 16 Oct 2011 14:50:48 +0200
changeset 2 13f43f53d0ba
child 5 45378793512a
permissions -rw-r--r--
first implementation

<?php
/*
 * This file is part of the WikiTagBundle package.
 *
 * (c) IRI <http://www.iri.centrepompidou.fr/>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
 namespace IRI\Bundle\WikiTagBundle\Model;
 
 abstract class Tag implements TagInterface {
    
    public static $TAG_URL_STATUS_DICT = array('null_result'=>0,'redirection'=>1,'homonyme'=>2,'match'=>3);
     
    /**
     * @var integer $id
     */
    protected $id;

    /**
     * @var string $label
     */
    protected $label;

    /**
     * @var string $normalizedLabel
     */
    protected $normalizedLabel;

    /**
     * @var string $originalLabel
     */
    protected $originalLabel;

    /**
     * @var string $alias
     */
    protected $alias;

    /**
     * @var string $wikipediaUrl
     */
    protected $wikipediaUrl;

    /**
     * @var bigint $wikipediaPageId
     */
    protected $wikipediaPageId;

    /**
     * @var smallint $urlStatus
     */
    protected $urlStatus;

    /**
     * @var string $dbpediaUri
     */
    protected $dbpediaUri;

    /**
     * @var integer $popularity
     */
    protected $popularity = 0;

    /**
     * @var object $category
     */
    protected $category;


    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set label
     *
     * @param string $label
     */
    public function setLabel($label)
    {
        $this->label = $label;
    }

    /**
     * Get label
     *
     * @return string
     */
    public function getLabel()
    {
        return $this->label;
    }

    /**
     * Set normalizedLabel
     *
     * @param string $normalizedLabel
     */
    public function setNormalizedLabel($normalizedLabel)
    {
        $this->normalizedLabel = $normalizedLabel;
    }

    /**
     * Get normalizedLabel
     *
     * @return string
     */
    public function getNormalizedLabel()
    {
        return $this->normalizedLabel;
    }

    /**
     * Set originalLabel
     *
     * @param string $originalLabel
     */
    public function setOriginalLabel($originalLabel)
    {
        $this->originalLabel = $originalLabel;
    }

    /**
     * Get originalLabel
     *
     * @return string
     */
    public function getOriginalLabel()
    {
        return $this->originalLabel;
    }

    /**
     * Set alias
     *
     * @param string $alias
     */
    public function setAlias($alias)
    {
        $this->alias = $alias;
    }

    /**
     * Get alias
     *
     * @return string
     */
    public function getAlias()
    {
        return $this->alias;
    }

    /**
     * Set wikipediaUrl
     *
     * @param string $wikipediaUrl
     */
    public function setWikipediaUrl($wikipediaUrl)
    {
        $this->wikipediaUrl = $wikipediaUrl;
    }

    /**
     * Get wikipediaUrl
     *
     * @return string
     */
    public function getWikipediaUrl()
    {
        return $this->wikipediaUrl;
    }

    /**
     * Set wikipediaPageId
     *
     * @param bigint $wikipediaPageId
     */
    public function setWikipediaPageId($wikipediaPageId)
    {
        $this->wikipediaPageId = $wikipediaPageId;
    }

    /**
     * Get wikipediaPageId
     *
     * @return bigint
     */
    public function getWikipediaPageId()
    {
        return $this->wikipediaPageId;
    }

    /**
     * Set urlStatus
     *
     * @param smallint $urlStatus
     */
    public function setUrlStatus($urlStatus)
    {
        $this->urlStatus = $urlStatus;
    }

    /**
     * Get urlStatus
     *
     * @return smallint
     */
    public function getUrlStatus()
    {
        return $this->urlStatus;
    }

    /**
     * Set dbpediaUri
     *
     * @param string $dbpediaUri
     */
    public function setDbpediaUri($dbpediaUri)
    {
        $this->dbpediaUri = $dbpediaUri;
    }

    /**
     * Get dbpediaUri
     *
     * @return string
     */
    public function getDbpediaUri()
    {
        return $this->dbpediaUri;
    }

    /**
     * Set popularity
     *
     * @param integer $popularity
     */
    public function setPopularity($popularity)
    {
        $this->popularity = $popularity;
    }

    /**
     * Get popularity
     *
     * @return integer
     */
    public function getPopularity()
    {
        return $this->popularity;
    }


     
 }