Copied!

PropertyReadOnlyException

PropertyReadOnlyException.php : 17
Extends Exception
Implements Exception

This Exception is thrown on a write attempt in a read only property in a value object.

Methods

public__construct()

PropertyReadOnlyException.php : 26

Generates: Property '{$propertyName}' is readonly[ on class '{$className}'].

public __construct(string $propertyName[, string|null $className = null ][, Exception|null $previous = null ])

Parameters

Name Type Default value Description
$propertyName string - -
$className string|null null

Optionally to specify class in abstract/parent classes

$previous Exception|null null -