3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* * Cash Register Remote API implementation for MyPos * Copyright (C) 2022 Lelyfoto / Michael Erkens * * For the full copyright and license information, please view the LICENSE */ declare(strict_types=1); namespace Lelyfoto\MyPos\CashRegisterRemote; class Config { public const API_VERSION = '3.0'; public const MYPOS_WSDL_PRODUCTION = 'https://crr-api.mypos.com/?wsdl'; public const MYPOS_WSDL_TEST = 'http://185.161.235.90:34206/infromhttp'; public function __construct( private readonly string $login, private readonly int $keyIndex, private readonly string $currency, private readonly string $tid, private readonly string $privateKey, private readonly string $myPosPublicCertificate, private readonly string $myPosWsdl = self::MYPOS_WSDL_PRODUCTION ) { } public function getLogin(): string { return $this->login; } public function getKeyIndex(): int { return $this->keyIndex; } public function getCurrency(): string { return $this->currency; } public function getTid(): string { return $this->tid; } public function getPrivateKey(): string { return $this->privateKey; } public function getMyPosPublicCertificate(): string { return $this->myPosPublicCertificate; } public function getMyPosWsdl(): string { return $this->myPosWsdl; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WMVvn
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   65     0  E > > RETURN                                                   1

Class Lelyfoto\MyPos\CashRegisterRemote\Config:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WMVvn
function name:  __construct
number of ops:  22
compiled vars:  !0 = $login, !1 = $keyIndex, !2 = $currency, !3 = $tid, !4 = $privateKey, !5 = $myPosPublicCertificate, !6 = $myPosWsdl
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
          4        RECV                                             !4      
          5        RECV                                             !5      
          6        RECV_INIT                                        !6      <const ast>
          7        ASSIGN_OBJ                                               'login'
          8        OP_DATA                                                  !0
          9        ASSIGN_OBJ                                               'keyIndex'
         10        OP_DATA                                                  !1
         11        ASSIGN_OBJ                                               'currency'
         12        OP_DATA                                                  !2
         13        ASSIGN_OBJ                                               'tid'
         14        OP_DATA                                                  !3
         15        ASSIGN_OBJ                                               'privateKey'
         16        OP_DATA                                                  !4
         17        ASSIGN_OBJ                                               'myPosPublicCertificate'
         18        OP_DATA                                                  !5
         19        ASSIGN_OBJ                                               'myPosWsdl'
         20        OP_DATA                                                  !6
   29    21      > RETURN                                                   null

End of function __construct

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

End of function getlogin

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

End of function getkeyindex

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

End of function getcurrency

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

End of function gettid

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

End of function getprivatekey

Function getmypospubliccertificate:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WMVvn
function name:  getMyPosPublicCertificate
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   58     0  E >   FETCH_OBJ_R                                      ~0      'myPosPublicCertificate'
          1        VERIFY_RETURN_TYPE                                       ~0
          2      > RETURN                                                   ~0
   59     3*       VERIFY_RETURN_TYPE                                       
          4*     > RETURN                                                   null

End of function getmypospubliccertificate

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

End of function getmyposwsdl

End of class Lelyfoto\MyPos\CashRegisterRemote\Config.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.22 ms | 1004 KiB | 13 Q