3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Event { private $propagationStopped = false; public function isPropagationStopped() { return $this->propagationStopped; } public function stopPropagation() { $this->propagationStopped = true; } } class AddFranchiseeEvent extends Event { const EVENT_ID = 'gtt.franchisee_my.event.add_franchisee'; private $franchisee; private $prefix; private $code; private $clientId; public function __construct(Franchisee $franchisee, $prefix, $code, $clientId) { $this->franchisee = $franchisee; $this->prefix = $prefix; $this->code = $code; $this->clientId = $clientId; } public function getFranchisee() { return $this->franchisee; } public function getPrefix() { return $this->prefix; } public function getCode() { return $this->code; } public function getClientId() { return $this->clientId; } } class Franchisee { protected $id; protected $parentId; protected $shortName; protected $fullName; public $branchId; protected $status; public function setStatus($status) { $this->status = $status; } public function getStatus() { return $this->status; } public function setFullName($fullName) { $this->fullName = $fullName; } public function getFullName() { return $this->fullName; } public function setId($id) { $this->id = $id; } public function getId() { return $this->id; } public function setParentId($parentId) { $this->parentId = $parentId; } public function getParentId() { return $this->parentId; } public function setShortName($shortName) { $this->shortName = $shortName; } public function getShortName() { return $this->shortName; } public function getBranchId() { return $this->branchId; } public function setBranchId($branchId) { $this->branchId = $branchId; } } $object = new Franchisee(); // new AddFranchiseeEvent(new Franchisee(), 'pref', 121, 12323); $object->setBranchId(100); echo json_encode($object);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NCZGQ
function name:  (null)
number of ops:  11
compiled vars:  !0 = $object
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  155     0  E >   NEW                                              $1      'Franchisee'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
  157     3        INIT_METHOD_CALL                                         !0, 'setBranchId'
          4        SEND_VAL_EX                                              100
          5        DO_FCALL                                      0          
  159     6        INIT_FCALL                                               'json_encode'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $5      
          9        ECHO                                                     $5
         10      > RETURN                                                   1

Class Event:
Function ispropagationstopped:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NCZGQ
function name:  isPropagationStopped
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   FETCH_OBJ_R                                      ~0      'propagationStopped'
          1      > RETURN                                                   ~0
    9     2*     > RETURN                                                   null

End of function ispropagationstopped

Function stoppropagation:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NCZGQ
function name:  stopPropagation
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   ASSIGN_OBJ                                               'propagationStopped'
          1        OP_DATA                                                  <true>
   14     2      > RETURN                                                   null

End of function stoppropagation

End of class Event.

Class AddFranchiseeEvent:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NCZGQ
function name:  __construct
number of ops:  13
compiled vars:  !0 = $franchisee, !1 = $prefix, !2 = $code, !3 = $clientId
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   26     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
   28     4        ASSIGN_OBJ                                               'franchisee'
          5        OP_DATA                                                  !0
   29     6        ASSIGN_OBJ                                               'prefix'
          7        OP_DATA                                                  !1
   30     8        ASSIGN_OBJ                                               'code'
          9        OP_DATA                                                  !2
   31    10        ASSIGN_OBJ                                               'clientId'
         11        OP_DATA                                                  !3
   32    12      > RETURN                                                   null

End of function __construct

Function getfranchisee:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NCZGQ
function name:  getFranchisee
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   37     0  E >   FETCH_OBJ_R                                      ~0      'franchisee'
          1      > RETURN                                                   ~0
   38     2*     > RETURN                                                   null

End of function getfranchisee

Function getprefix:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NCZGQ
function name:  getPrefix
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   43     0  E >   FETCH_OBJ_R                                      ~0      'prefix'
          1      > RETURN                                                   ~0
   44     2*     > RETURN                                                   null

End of function getprefix

Function getcode:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NCZGQ
function name:  getCode
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   49     0  E >   FETCH_OBJ_R                                      ~0      'code'
          1      > RETURN                                                   ~0
   50     2*     > RETURN                                                   null

End of function getcode

Function getclientid:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NCZGQ
function name:  getClientId
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   55     0  E >   FETCH_OBJ_R                                      ~0      'clientId'
          1      > RETURN                                                   ~0
   56     2*     > RETURN                                                   null

End of function getclientid

Function ispropagationstopped:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NCZGQ
function name:  isPropagationStopped
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   FETCH_OBJ_R                                      ~0      'propagationStopped'
          1      > RETURN                                                   ~0
    9     2*     > RETURN                                                   null

End of function ispropagationstopped

Function stoppropagation:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NCZGQ
function name:  stopPropagation
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   ASSIGN_OBJ                                               'propagationStopped'
          1        OP_DATA                                                  <true>
   14     2      > RETURN                                                   null

End of function stoppropagation

End of class AddFranchiseeEvent.

Class Franchisee:
Function setstatus:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NCZGQ
function name:  setStatus
number of ops:  4
compiled vars:  !0 = $status
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   83     0  E >   RECV                                             !0      
   85     1        ASSIGN_OBJ                                               'status'
          2        OP_DATA                                                  !0
   86     3      > RETURN                                                   null

End of function setstatus

Function getstatus:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NCZGQ
function name:  getStatus
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   91     0  E >   FETCH_OBJ_R                                      ~0      'status'
          1      > RETURN                                                   ~0
   92     2*     > RETURN                                                   null

End of function getstatus

Function setfullname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NCZGQ
function name:  setFullName
number of ops:  4
compiled vars:  !0 = $fullName
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   95     0  E >   RECV                                             !0      
   97     1        ASSIGN_OBJ                                               'fullName'
          2        OP_DATA                                                  !0
   98     3      > RETURN                                                   null

End of function setfullname

Function getfullname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NCZGQ
function name:  getFullName
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  103     0  E >   FETCH_OBJ_R                                      ~0      'fullName'
          1      > RETURN                                                   ~0
  104     2*     > RETURN                                                   null

End of function getfullname

Function setid:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NCZGQ
function name:  setId
number of ops:  4
compiled vars:  !0 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  107     0  E >   RECV                                             !0      
  109     1        ASSIGN_OBJ                                               'id'
          2        OP_DATA                                                  !0
  110     3      > RETURN                                                   null

End of function setid

Function getid:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NCZGQ
function name:  getId
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  115     0  E >   FETCH_OBJ_R                                      ~0      'id'
          1      > RETURN                                                   ~0
  116     2*     > RETURN                                                   null

End of function getid

Function setparentid:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NCZGQ
function name:  setParentId
number of ops:  4
compiled vars:  !0 = $parentId
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  119     0  E >   RECV                                             !0      
  121     1        ASSIGN_OBJ                                               'parentId'
          2        OP_DATA                                                  !0
  122     3      > RETURN                                                   null

End of function setparentid

Function getparentid:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NCZGQ
function name:  getParentId
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  127     0  E >   FETCH_OBJ_R                                      ~0      'parentId'
          1      > RETURN                                                   ~0
  128     2*     > RETURN                                                   null

End of function getparentid

Function setshortname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NCZGQ
function name:  setShortName
number of ops:  4
compiled vars:  !0 = $shortName
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  131     0  E >   RECV                                             !0      
  133     1        ASSIGN_OBJ                                               'shortName'
          2        OP_DATA                                                  !0
  134     3      > RETURN                                                   null

End of function setshortname

Function getshortname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NCZGQ
function name:  getShortName
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  139     0  E >   FETCH_OBJ_R                                      ~0      'shortName'
          1      > RETURN                                                   ~0
  140     2*     > RETURN                                                   null

End of function getshortname

Function getbranchid:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NCZGQ
function name:  getBranchId
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  145     0  E >   FETCH_OBJ_R                                      ~0      'branchId'
          1      > RETURN                                                   ~0
  146     2*     > RETURN                                                   null

End of function getbranchid

Function setbranchid:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NCZGQ
function name:  setBranchId
number of ops:  4
compiled vars:  !0 = $branchId
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  149     0  E >   RECV                                             !0      
  151     1        ASSIGN_OBJ                                               'branchId'
          2        OP_DATA                                                  !0
  152     3      > RETURN                                                   null

End of function setbranchid

End of class Franchisee.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.28 ms | 1412 KiB | 15 Q