CanCleanParameters
trait CanCleanParameters (View source)
Trait CanCleanParameters
Methods
This method checks that all properties marked as required have been assigned a value.
This method picks up all the defined properties the $parameterRequired|$parameterOptional property array list from the class object and returns an array containing each list item name as a key and the matching property value from the class
This method calls the accessors for keys passed in and returns back the value it receives from the class instance
Details
at line 35
protected bool
propertiesPassRequired()
This method checks that all properties marked as required have been assigned a value.
A protected $parametersRequired property must contain the names of the required parameters on the class that will use this trait method. and all parameters must each have a defined get accessor on the class object instance
at line 60
protected array
propertiesToArray()
This method picks up all the defined properties the $parameterRequired|$parameterOptional property array list from the class object and returns an array containing each list item name as a key and the matching property value from the class
at line 93
protected mixed
accessPropertyByKey(string $key)
This method calls the accessors for keys passed in and returns back the value it receives from the class instance
throws an error if a defined parameter in the $parameterRequired|$parameterOptional does not have a reachable get[PropertyName] accessor defined on the class instance.