EntityInterface
namespace |
bhenk\msdata\abc |
predicates |
Abstract | Interface |
implements |
|
known implementations |
Definition of a basic data object
Methods
EntityInterface::fromArray
predicates |
public | static | abstract |
Create a new Entity from an array of properties
The given array should have the same order as the one gotten from EntityInterface::toArray.
public static abstract function fromArray(
Parameter #0 [ <required> array $arr ]
): Entity
EntityInterface::getID
predicates |
public | abstract |
Get the ID of this Entity or null if it has no ID
public abstract function getID(): ?int
EntityInterface::toArray
predicates |
public | abstract |
Express the properties of this Entity in an array
The returned array should be in such order that it can be fet to the static method EntityInterface::fromArray.
public abstract function toArray(): array
EntityInterface::clone
predicates |
public | abstract |
Create an Entity that equals this Entity
The newly created Entity gets the given ID or no ID if $ID is null.
public abstract function clone(
Parameter #0 [ <optional> ?int $ID = NULL ]
): Entity
EntityInterface::equals
predicates |
public | abstract |
Test equals function
The given Entity equals this Entity if all properties, except ID, are equal.
public abstract function equals(
Parameter #0 [ <required> bhenk\msdata\abc\Entity $other ]
): bool
EntityInterface::isSame
predicates |
public | abstract |
Test is same function
The given Entity is similar to this Entity if all properties, including ID, are equal.
public abstract function isSame(
Parameter #0 [ <required> bhenk\msdata\abc\Entity $other ]
): bool
EntityInterface::__toString
predicates |
public | abstract |
public abstract function __toString(): string
Sat, 01 Jul 2023 13:02:23 +0000