vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

1.in

(500B)


      1 <?php
      2 class Foo
      3 {
      4         private $var1;
      5         private $var2;
      6 
      7         public function Foo($val)
      8         {
      9                 $this->init($val);
     10                 $this->doSomething();
     11         }
     12 
     13         private function init($val)
     14         {
     15                 $this->var1 = $val;
     16         }
     17         
     18         private function doSomething()
     19         {
     20                 $this->var2 = sqrt($this->var1);
     21         }
     22 
     23         public function getResult()
     24         {
     25                 return $this->var2;
     26         }
     27 }
     28 ?>