Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class test {
- public $val;
- public $val2;
- public $val3;
- function __construct() {
- $this->val = $this->setVal();
- $this->val2 = $this->setVal2();
- $this->setVal3();
- }
- private function setVal() {
- return $this->val = true;
- }
- private function setVal2() {
- return true;
- }
- private function setVal3() {
- $this->val3 = true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement