Change fromArray() return type to static in SerializableInterface

This commit is contained in:
netkas 2024-09-03 11:34:30 -04:00
parent 946e8bec9e
commit 99c4284ce1

View file

@ -2,8 +2,6 @@
namespace Socialbox\Interfaces; namespace Socialbox\Interfaces;
use Socialbox\Abstracts\Entity;
interface SerializableInterface interface SerializableInterface
{ {
/** /**
@ -18,5 +16,5 @@ interface SerializableInterface
* *
* @param array $data The data to construct the object from. * @param array $data The data to construct the object from.
*/ */
public static function fromArray(array $data): Entity; public static function fromArray(array $data): static;
} }