3v4l.org

run code in 300+ PHP versions simultaneously
<?php class CompanyConfig { protected $name; protected $db_name; protected $localdb_name; protected $logo_file_path; protected $logo_top_offset; protected $site_name; protected $css_class_name; public function getName() { return $this->name; } public function setName($name) { $this->name = $name; return $this; } public function getDbName() { return $this->db_name; } public function setDbName($db_name) { $this->db_name = $db_name; return $this; } public function getLogoFilePath() { return $this->logo_file_path; } public function setLogoFilePath($logo_file_path) { $this->logo_file_path = $logo_file_path; return $this; } public function getSiteName() { return $this->site_name; } public function setSiteName($site_name) { $this->site_name = $site_name; return $this; } public function getCssClassName() { return $this->css_class_name; } public function setCssClassName($css_class_name) { $this->css_class_name = $css_class_name; return $this; } public function getLogoTopOffset() { return $this->logo_top_offset; } public function setLogoTopOffset($logo_top_offset) { if (!is_numeric($logo_top_offset)) { throw new \InvalidArgumentException("'$logo_top_offset' must be numeric"); } $this->logo_top_offset = $logo_top_offset; return $this; } public function getStylesheetName() { return 'site_'.$this->getCssClassName(); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ns1mR
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   81     0  E > > RETURN                                                   1

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

End of function getname

Function setname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ns1mR
function name:  setName
number of ops:  6
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   RECV                                             !0      
   18     1        ASSIGN_OBJ                                               'name'
          2        OP_DATA                                                  !0
   20     3        FETCH_THIS                                       ~2      
          4      > RETURN                                                   ~2
   21     5*     > RETURN                                                   null

End of function setname

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

End of function getdbname

Function setdbname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ns1mR
function name:  setDbName
number of ops:  6
compiled vars:  !0 = $db_name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   27     0  E >   RECV                                             !0      
   28     1        ASSIGN_OBJ                                               'db_name'
          2        OP_DATA                                                  !0
   30     3        FETCH_THIS                                       ~2      
          4      > RETURN                                                   ~2
   31     5*     > RETURN                                                   null

End of function setdbname

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

End of function getlogofilepath

Function setlogofilepath:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ns1mR
function name:  setLogoFilePath
number of ops:  6
compiled vars:  !0 = $logo_file_path
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   37     0  E >   RECV                                             !0      
   38     1        ASSIGN_OBJ                                               'logo_file_path'
          2        OP_DATA                                                  !0
   40     3        FETCH_THIS                                       ~2      
          4      > RETURN                                                   ~2
   41     5*     > RETURN                                                   null

End of function setlogofilepath

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

End of function getsitename

Function setsitename:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ns1mR
function name:  setSiteName
number of ops:  6
compiled vars:  !0 = $site_name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   47     0  E >   RECV                                             !0      
   48     1        ASSIGN_OBJ                                               'site_name'
          2        OP_DATA                                                  !0
   50     3        FETCH_THIS                                       ~2      
          4      > RETURN                                                   ~2
   51     5*     > RETURN                                                   null

End of function setsitename

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

End of function getcssclassname

Function setcssclassname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ns1mR
function name:  setCssClassName
number of ops:  6
compiled vars:  !0 = $css_class_name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   57     0  E >   RECV                                             !0      
   58     1        ASSIGN_OBJ                                               'css_class_name'
          2        OP_DATA                                                  !0
   60     3        FETCH_THIS                                       ~2      
          4      > RETURN                                                   ~2
   61     5*     > RETURN                                                   null

End of function setcssclassname

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

End of function getlogotopoffset

Function setlogotopoffset:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 13
Branch analysis from position: 6
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ns1mR
function name:  setLogoTopOffset
number of ops:  18
compiled vars:  !0 = $logo_top_offset
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   67     0  E >   RECV                                             !0      
   68     1        INIT_FCALL                                               'is_numeric'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $1      
          4        BOOL_NOT                                         ~2      $1
          5      > JMPZ                                                     ~2, ->13
   69     6    >   NEW                                              $3      'InvalidArgumentException'
          7        ROPE_INIT                                     3  ~5      '%27'
          8        ROPE_ADD                                      1  ~5      ~5, !0
          9        ROPE_END                                      2  ~4      ~5, '%27+must+be+numeric'
         10        SEND_VAL_EX                                              ~4
         11        DO_FCALL                                      0          
         12      > THROW                                         0          $3
   72    13    >   ASSIGN_OBJ                                               'logo_top_offset'
         14        OP_DATA                                                  !0
   74    15        FETCH_THIS                                       ~9      
         16      > RETURN                                                   ~9
   75    17*     > RETURN                                                   null

End of function setlogotopoffset

Function getstylesheetname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ns1mR
function name:  getStylesheetName
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   79     0  E >   INIT_METHOD_CALL                                         'getCssClassName'
          1        DO_FCALL                                      0  $0      
          2        CONCAT                                           ~1      'site_', $0
          3      > RETURN                                                   ~1
   80     4*     > RETURN                                                   null

End of function getstylesheetname

End of class CompanyConfig.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.03 ms | 1404 KiB | 15 Q