| Total Complexity | 4 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 18 | class NativeFileReader implements FileReaderInterface |
||
| 19 | { |
||
| 20 | /** @var FFI\Libc\libc_file_ffi */ |
||
| 21 | private FFI $ffi; |
||
| 22 | |||
| 23 | public function __construct() |
||
| 27 | int open(const char *pathname, int flags); |
||
| 28 | ssize_t read(int fd, void *buf, size_t count); |
||
| 29 | int close(int fd); |
||
| 30 | '); |
||
| 31 | } |
||
| 32 | |||
| 33 | public function readAll(string $path): string |
||
| 53 |