Ejemplo n.º 1
0
 /**
  * Creates a new conflicted line
  * @param string $base        The line as present in the base branch
  * @param string $head        The line as present in the head branch
  * @param type   $branch_name The name of the head branch
  */
 public function __construct($base, $head, $branch_name = '')
 {
     $this->base = $base;
     $this->head = $head;
     $line = '<<<<<<< HEAD' . "\n";
     $line .= $base . "\n";
     $line .= '=======' . "\n";
     $line .= $head . "\n";
     $line .= '>>>>>>> ' . $branch_name;
     parent::__construct($line, parent::BOTH);
 }
Ejemplo n.º 2
0
 /**
  * @param Point $a
  * @param Point $b
  * @param int $size
  */
 function __construct(Point $a, Point $b, $size)
 {
     parent::__construct($a, $b);
     $this->size = $size;
 }
Ejemplo n.º 3
0
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->availableProperties = array_merge($this->availableProperties, array('fillcolor', 'fillopacity', 'fill'));
 }