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(); }