public function buildTag($tag, $counter, $permalink)
    {
        $tagObject = new $this->tagEntity();
        $tagObject->setTag($tag);
        $tagObject->setCounter($counter);
        $tagObject->setPage($permalink);

        return $tagObject;
    }
public function buildTag($tag, $counter, $permalink)
    {
        $tagObject = new $this->tagEntity();
        $tagObject->setTag($tag);
        $tagObject->setCounter($counter);
        $tagObject->setPage($permalink);

        return $tagObject;
    }
public function buildTag ( $ tag , $ counter , $ permalink ) { $ tagObject = new $ this -> tagEntity ( ) ; $ tagObject -> setTag ( $ tag ) ; $ tagObject -> setCounter ( $ counter ) ; $ tagObject -> setPage ( $ permalink ) ; return $ tagObject ; }
Build a Tag entity

@param string $tag
@param int $counter
@param string $permalink

@return \Jb\Bundle\TagCloudBundle\Model\Tag
Build a Tag entity