Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.44 KB | None | 0 0
  1. <?php
  2.  
  3. class test {
  4.  
  5.     public $val;
  6.     public $val2;
  7.     public $val3;
  8.  
  9.  
  10.  
  11.     function __construct() {
  12.  
  13.         $this->val = $this->setVal();
  14.         $this->val2 = $this->setVal2();
  15.         $this->setVal3();
  16.  
  17.     }
  18.  
  19.     private function setVal() {
  20.         return $this->val = true;
  21.     }
  22.  
  23.     private function setVal2() {
  24.         return true;
  25.     }
  26.  
  27.     private function setVal3() {
  28.         $this->val3 = true;
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement