| 1 | <?php |
||
| 16 | class SimpleXmlParentItemAccessBench extends ParentItemAccessCase |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var null|SimpleXMLElement |
||
| 20 | */ |
||
| 21 | private $child; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var SimpleXMLElement |
||
| 25 | */ |
||
| 26 | private $xml; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * |
||
| 30 | */ |
||
| 31 | public function __construct() |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @inheritdoc |
||
| 38 | */ |
||
| 39 | public function benchColdParentItemAccess(array $params) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @inheritdoc |
||
| 50 | */ |
||
| 51 | public function beforeWarmParentItemAccess(array $params) |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @inheritdoc |
||
| 58 | */ |
||
| 59 | public function benchWarmParentItemAccess(array $params) |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @inheritdoc |
||
| 70 | */ |
||
| 71 | public function afterWarmParentItemAccess(array $params) |
||
| 75 | } |
||
| 76 |
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.