Added __toString to entities for easier debuging

This commit is contained in:
Kevin Frantz 2018-10-31 18:43:42 +01:00
parent e2435e5667
commit a798262150

View File

@ -32,4 +32,9 @@ abstract class AbstractEntity implements EntityInterface
public function __construct() public function __construct()
{ {
} }
public function __toString(): string
{
return __CLASS__.':'.spl_object_hash($this);
}
} }