gluon-web-remote

Web remote Administration for big size of gluon routers
git clone git://archive.git.mtrnord.blog/MTRNord/gluon-web-remote.git
Log | Files | Refs | README

Line.php (1257B)


      1 <?php
      2 /*
      3  * This file is part of the Diff package.
      4  *
      5  * (c) Sebastian Bergmann <sebastian@phpunit.de>
      6  *
      7  * For the full copyright and license information, please view the LICENSE
      8  * file that was distributed with this source code.
      9  */
     10 
     11 namespace SebastianBergmann\Diff;
     12 
     13 /**
     14  * @package    Diff
     15  * @author     Sebastian Bergmann <sebastian@phpunit.de>
     16  * @author     Kore Nordmann <mail@kore-nordmann.de>
     17  * @copyright  Sebastian Bergmann <sebastian@phpunit.de>
     18  * @license    http://www.opensource.org/licenses/BSD-3-Clause  The BSD 3-Clause License
     19  * @link       http://www.github.com/sebastianbergmann/diff
     20  */
     21 class Line
     22 {
     23     const ADDED = 1;
     24     const REMOVED = 2;
     25     const UNCHANGED = 3;
     26 
     27     /**
     28      * @var int
     29      */
     30     private $type;
     31 
     32     /**
     33      * @var string
     34      */
     35     private $content;
     36 
     37     /**
     38      * @param int    $type
     39      * @param string $content
     40      */
     41     public function __construct($type = self::UNCHANGED, $content = '')
     42     {
     43         $this->type    = $type;
     44         $this->content = $content;
     45     }
     46 
     47     /**
     48      * @return string
     49      */
     50     public function getContent()
     51     {
     52         return $this->content;
     53     }
     54 
     55     /**
     56      * @return int
     57      */
     58     public function getType()
     59     {
     60         return $this->type;
     61     }
     62 }