Copied!

URL

URL.php : 14
Extends ValueObject

The base class for all value objects and structs.

Supports read-only properties by marking them as protected. In this case they will only be writable using constructor, and need to be documented using @property-read <type> <$var> annotation in class doc in addition to inline property doc. Writable properties must be public and must be documented inline.

Properties

protected $created

URL.php : 49

Creation date.

protected DateTimeInterface $created

protected $id

URL.php : 21

The unique id of the URL.

protected int $id

protected $isValid

URL.php : 35

Is URL valid ?

protected bool $isValid

protected $lastChecked

URL.php : 42

Date of last check.

protected DateTimeInterface $lastChecked

protected $modified

URL.php : 56

Modified date.

protected DateTimeInterface $modified

protected $url

URL.php : 28

URL itself e.g. "http://ibexa.co".

protected string $url

Methods

public__construct()

ValueObject.php : 32

Construct object optionally with a set of properties.

public __construct([array<string, mixed> $properties = [] ])

Readonly properties values must be set using $properties as they aren't writable anymore after object has been created.

Parameters

Name Type Default value Description
$properties array<string, mixed> [] -

publicgetCreated()

URL.php : 78
public getCreated() : DateTimeInterface|null

Return values

DateTimeInterface|null

publicgetId()

URL.php : 58
public getId() : int

Return values

int

publicgetLastChecked()

URL.php : 73
public getLastChecked() : DateTimeInterface|null

Return values

DateTimeInterface|null

publicgetModified()

URL.php : 83
public getModified() : DateTimeInterface|null

Return values

DateTimeInterface|null

publicgetUrl()

URL.php : 63
public getUrl() : string

Return values

string

publicisValid()

URL.php : 68
public isValid() : bool

Return values

bool

protectedgetProperties()

ValueObject.php : 53

Returns list of available properties' names.

protected getProperties([array<int, string> $dynamicProperties = [] ]) : array<int, string>

Override to add dynamic properties.

Parameters

Name Type Default value Description
$dynamicProperties array<int, string> []

Additional dynamic properties exposed on the object

Return values

array<int, string>

Attributes
#[Ignore]