3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface ObjectRepository { /** * Finds an object by its primary key / identifier. * * @param mixed $id The identifier. * * @return object The object. */ public function find($id); /** * Finds all objects in the repository. * * @return array The objects. */ public function findAll(); /** * Finds objects by a set of criteria. * * Optionally sorting and limiting details can be passed. An implementation may throw * an UnexpectedValueException if certain values of the sorting or limiting details are * not supported. * * @param array $criteria * @param array|null $orderBy * @param int|null $limit * @param int|null $offset * * @return array The objects. * * @throws \UnexpectedValueException */ public function findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null); /** * Finds a single object by a set of criteria. * * @param array $criteria The criteria. * * @return object The object. */ public function findOneBy(array $criteria); /** * Returns the class name of the object managed by the repository. * * @return string */ public function getClassName(); } interface ModelRepositoryInterface extends ObjectRepository { public function createNew(); /** * Have to use different method because ObjectRepository defines findOneBy(array $criteria); * * @param array $criteria * @param array $orderBy * @return mixed */ public function findOneByWithOrder(array $criteria, array $orderBy = null); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IZN1Q
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   56     0  E >   DECLARE_CLASS                                            'modelrepositoryinterface'
   69     1      > RETURN                                                   1

Class ObjectRepository:
Function find:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IZN1Q
function name:  find
number of ops:  2
compiled vars:  !0 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function find

Function findall:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IZN1Q
function name:  findAll
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E > > RETURN                                                   null

End of function findall

Function findby:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IZN1Q
function name:  findBy
number of ops:  5
compiled vars:  !0 = $criteria, !1 = $orderBy, !2 = $limit, !3 = $offset
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   37     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      null
          2        RECV_INIT                                        !2      null
          3        RECV_INIT                                        !3      null
          4      > RETURN                                                   null

End of function findby

Function findoneby:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IZN1Q
function name:  findOneBy
number of ops:  2
compiled vars:  !0 = $criteria
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   46     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function findoneby

Function getclassname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IZN1Q
function name:  getClassName
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   53     0  E > > RETURN                                                   null

End of function getclassname

End of class ObjectRepository.

Class ModelRepositoryInterface:
Function createnew:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IZN1Q
function name:  createNew
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   59     0  E > > RETURN                                                   null

End of function createnew

Function findonebywithorder:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IZN1Q
function name:  findOneByWithOrder
number of ops:  3
compiled vars:  !0 = $criteria, !1 = $orderBy
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   68     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      null
          2      > RETURN                                                   null

End of function findonebywithorder

End of class ModelRepositoryInterface.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.61 ms | 1390 KiB | 13 Q