| Total Complexity | 3 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 3 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 15 | class Logging |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Constructor |
||
| 19 | * |
||
| 20 | * @param \Doctrine\ORM\EntityManager $manager |
||
| 21 | */ |
||
| 22 | 1 | public function __construct(EntityManager $manager) |
|
| 25 | 1 | } |
|
| 26 | |||
| 27 | |||
| 28 | /** |
||
| 29 | * Create a log entry for the passed request. |
||
| 30 | * |
||
| 31 | * @param \Symfony\Component\HttpFoundation\Request $request |
||
| 32 | * @param string $message |
||
| 33 | * @return \Zicht\Bundle\UrlBundle\Entity\ErrorLog |
||
| 34 | */ |
||
| 35 | 2 | public function createLog(Request $request, $message) |
|
| 44 | ); |
||
| 45 | } |
||
| 46 | |||
| 47 | |||
| 48 | /** |
||
| 49 | * Persist the log and flush the manager. |
||
| 50 | * |
||
| 51 | * @param ErrorLog $entry |
||
| 52 | * @return void |
||
| 53 | */ |
||
| 54 | 1 | public function flush($entry) |
|
| 60 |