Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Pipeline
- {
- public function subPipe1($x)
- {
- $res = $x*3;
- $sp1 = $this->subPipe2($res);
- return $this->subPipe3($sp1);
- }
- private function subPipe2($x)
- {
- return $x+1;
- }
- private function subPipe3($x)
- {
- return $x/2;
- }
- }
- $var = new Pipeline();
- echo $var->subPipe1(3);
- ?>
Add Comment
Please, Sign In to add comment