UserDo
namespace |
bhenk\msdata\user |
predicates |
Cloneable | Instantiable |
implements |
|
extends |
|
hierarchy |
|
known subclasses |
A simple user
This line has Entity, OutOfBoundsException, Entity 3 links.
- A box of roses
with content
Constructor
UserDo::__construct
predicates |
public | constructor |
public function __construct(
Parameter #0 [ <optional> ?int $ID = NULL ]
Parameter #1 [ <optional> ?string $first_name = NULL ]
Parameter #2 [ <optional> ?string $prefixes = NULL ]
Parameter #3 [ <optional> ?string $last_name = NULL ]
Parameter #4 [ <optional> ?string $email = NULL ]
)
Methods
UserDo::getFirstName
predicates |
public |
public function getFirstName(): ?string
UserDo::setFirstName
predicates |
public |
public function setFirstName(
Parameter #0 [ <required> ?string $first_name ]
): void
UserDo::getPrefixes
predicates |
public |
public function getPrefixes(): ?string
UserDo::setPrefixes
predicates |
public |
public function setPrefixes(
Parameter #0 [ <required> ?string $prefixes ]
): void
UserDo::getLastName
predicates |
public |
public function getLastName(): ?string
UserDo::setLastName
predicates |
public |
public function setLastName(
Parameter #0 [ <required> ?string $last_name ]
): void
UserDo::getEmail
predicates |
public |
public function getEmail(): ?string
UserDo::setEmail
predicates |
public |
public function setEmail(
Parameter #0 [ <required> ?string $email ]
): void
UserDo::clone
predicates |
public |
implements |
|
inherited from |
@inheritdoc
Create an Entity that equals this Entity
The newly created Entity gets the given ID or no ID if $ID is null.
@inheritdoc from method EntityInterface::clone
public function clone(
Parameter #0 [ <optional> ?int $ID = NULL ]
): Entity
UserDo::toArray
predicates |
public |
implements |
|
inherited from |
@inheritdoc
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().
@inheritdoc from method EntityInterface::toArray
see also
public function toArray(): array
UserDo::getParents
predicates |
public |
inherited from |
Get the (Reflection) parents of this Entity in reverse order
class A extends Entity
class B extends A
returned array = [Entity-Reflection, A-Reflection, B-Reflection]
public function getParents(): array
UserDo::fromArray
predicates |
public | static |
implements |
|
inherited from |
Create a new Entity
The order of the given array should be parent-first, i.e.:
class A extends Entity
class B extends A
In __construct(), toArray() and fromArray() functions, properties/parameters have the order:
ID, {props of A}, {props of B}
@inheritdoc
Create a new Entity from an array of properties
The given array should have the same order as the one gotten from EntityInterface::toArray().
@inheritdoc from method EntityInterface::fromArray
public static function fromArray(
Parameter #0 [ <required> array $arr ]
): static
UserDo::isSame
predicates |
public |
implements |
|
inherited from |
@inheritdoc
Test is same function
The given Entity is similar to this Entity if all properties, including ID, are equal.
@inheritdoc from method EntityInterface::isSame
public function isSame(
Parameter #0 [ <required> bhenk\msdata\abc\Entity $other ]
): bool
UserDo::equals
predicates |
public |
implements |
|
inherited from |
@inheritdoc
Test equals function
The given Entity equals this Entity if all properties, except ID, are equal.
@inheritdoc from method EntityInterface::equals
public function equals(
Parameter #0 [ <required> bhenk\msdata\abc\Entity $other ]
): bool
UserDo::getID
predicates |
public |
implements |
|
inherited from |
@inheritdoc
Get the ID of this Entity or null if it has no ID
@inheritdoc from method EntityInterface::getID
public function getID(): ?int
UserDo::__toString
predicates |
public |
implements |
|
inherited from |
String representation of this Entity
public function __toString(): string
Sat, 01 Jul 2023 13:02:23 +0000