123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- <?php
- declare(strict_types=1);
- namespace OCP\Profiler;
- use OCP\DataCollector\IDataCollector;
- interface IProfile {
-
- public function getToken(): string;
-
- public function setToken(string $token): void;
-
- public function getTime(): ?int;
-
- public function setTime(int $time): void;
-
- public function getUrl(): ?string;
-
- public function setUrl(string $url): void;
-
- public function getMethod(): ?string;
-
- public function setMethod(string $method): void;
-
- public function getStatusCode(): ?int;
-
- public function setStatusCode(int $statusCode): void;
-
- public function addCollector(IDataCollector $collector);
-
- public function getParent(): ?IProfile;
-
- public function setParent(?IProfile $parent): void;
-
- public function getParentToken(): ?string;
-
- public function getChildren(): array;
-
- public function setChildren(array $children): void;
-
- public function addChild(IProfile $profile): void;
-
- public function getCollectors(): array;
-
- public function setCollectors(array $collectors): void;
-
- public function getCollector(string $collectorName): ?IDataCollector;
- }
|