Skip to content

Commit e618f62

Browse files
committed
add stub to ExpressionContext for getting information of the target executables
1 parent 2b062f5 commit e618f62

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed

src/Lib/Dwarf/Expression/ExpressionContext.php

+6
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,17 @@
1414
namespace PhpProfiler\Lib\Dwarf\Expression;
1515

1616
use PhpProfiler\Lib\Dwarf\CompilationUnit\CompilationUnit;
17+
use PhpProfiler\Lib\Dwarf\ObjectFile\Executable;
1718

1819
final class ExpressionContext
1920
{
2021
public function getCompilationUnit(): CompilationUnit
2122
{
2223

2324
}
25+
26+
public function getExecutableFile(): Executable
27+
{
28+
29+
}
2430
}
+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
/**
4+
* This file is part of the sj-i/php-profiler package.
5+
*
6+
* (c) sji <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
declare(strict_types=1);
13+
14+
namespace PhpProfiler\Lib\Dwarf\ObjectFile;
15+
16+
use PhpProfiler\Lib\Dwarf\ObjectFile\Section\DebugAddr;
17+
18+
final class Executable
19+
{
20+
public function __construct(
21+
public DebugAddr $debug_addr
22+
) {
23+
}
24+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
/**
4+
* This file is part of the sj-i/php-profiler package.
5+
*
6+
* (c) sji <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
declare(strict_types=1);
13+
14+
namespace PhpProfiler\Lib\Dwarf\ObjectFile\Section;
15+
16+
use PhpProfiler\Lib\Dwarf\AddressTable\AddressTable;
17+
18+
final class DebugAddr
19+
{
20+
public function __construct(
21+
public AddressTable $address_table
22+
) {
23+
}
24+
}

0 commit comments

Comments
 (0)