Documentation

PropertiesTrait

Properties trait

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

Copyright (c) 2009-2024 NOLA Interactive, LLC. (http://www.nolainteractive.com)

license

http://www.popphp.org/license New BSD License

version
5.0.0

Table of Contents

Properties

$properties  : array<string|int, mixed>
Array of property generator objects

Methods

addProperties()  : static
Add class properties
addProperty()  : static
Add a class property
getProperties()  : array<string|int, mixed>
Get all properties
getProperty()  : PropertyGenerator|null
Get a class property
hasProperties()  : bool
Has properties
hasProperty()  : bool
Has a class property
removeProperty()  : static
Remove a class property

Properties

$properties

Array of property generator objects

protected array<string|int, mixed> $properties = []

Methods

addProperties()

Add class properties

public addProperties(array<string|int, mixed> $properties) : static
Parameters
$properties : array<string|int, mixed>
Return values
static

getProperties()

Get all properties

public getProperties() : array<string|int, mixed>
Return values
array<string|int, mixed>

hasProperties()

Has properties

public hasProperties() : bool
Return values
bool

hasProperty()

Has a class property

public hasProperty(mixed $property) : bool
Parameters
$property : mixed
Return values
bool

removeProperty()

Remove a class property

public removeProperty(mixed $property) : static
Parameters
$property : mixed
Return values
static

        
On this page

Search results