Skip to content
This repository was archived by the owner on May 2, 2025. It is now read-only.

Commit ebb967f

Browse files
committed
Adding LogEntry class
Signed-off-by: Joey Smith <jsmith@webinertia.net> Signed-off-by: Joey Smith <jsmith@webinertia.net>
1 parent a76a0c8 commit ebb967f

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/LogEntry.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Webinertia\Log;
6+
7+
use Laminas\Stdlib\ArrayObject;
8+
9+
final class LogEntry extends ArrayObject
10+
{
11+
public const RESOURCE_ID = 'logs';
12+
13+
/** @inheritDoc */
14+
public function __construct($input = [], $flags = self::ARRAY_AS_PROPS)
15+
{
16+
parent::__construct($input, $flags);
17+
}
18+
19+
public function getResourceId(): string
20+
{
21+
return self::RESOURCE_ID;
22+
}
23+
}

0 commit comments

Comments
 (0)