/**
  * Sets the Exceptions message to show the undefined property's name.
  *
  * @param str $property_name name of undefined property
  * @return void
  */
 public function __construct($class_name, $property_name)
 {
     if (\is_array($property_name)) {
         $this->message = \implode("\r\n", $property_name);
         return;
     }
     $this->message = "Undefined property: {$class_name}->{$property_name} in {$this->file} on line {$this->line}";
     parent::__construct();
 }
 /**
  * Sets the Exceptions message to show the undefined property's name.
  *
  * @param str $class_name name of the model that is read only
  * @param str $method_name name of method which attempted to modify the model
  * @return void
  */
 public function __construct($class_name, $method_name)
 {
     $this->message = "{$class_name}::{$method_name}() cannot be invoked because this model is set to read only";
     parent::__construct();
 }