Guest User

Untitled

a guest
Jan 17th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. <?php
  2. class Pipeline
  3. {
  4.  
  5. public function subPipe1($x)
  6. {
  7. $res = $x*3;
  8. $sp1 = $this->subPipe2($res);
  9. return $this->subPipe3($sp1);
  10. }
  11.  
  12. private function subPipe2($x)
  13. {
  14. return $x+1;
  15. }
  16.  
  17. private function subPipe3($x)
  18. {
  19. return $x/2;
  20. }
  21. }
  22.  
  23. $var = new Pipeline();
  24. echo $var->subPipe1(3);
  25. ?>
Add Comment
Please, Sign In to add comment