Dhii/exception

View on GitHub
src/SubjectAwareTrait.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
 
namespace Dhii\Exception;
 
/**
* Functionality for subject awareness.
*
* @since [*next-version*]
*/
trait SubjectAwareTrait
{
/**
* The subject associated with this instance.
*
* @since [*next-version*]
*
* @var mixed
*/
protected $subject;
 
/**
* Retrieves the subject.
*
* @since [*next-version*]
*
* @return mixed The subject
*/
The method _getSubject is not named in camelCase.
protected function _getSubject()
{
return $this->subject;
}
 
/**
* Assigns the subject.
*
* @since [*next-version*]
*
* @return $this
*/
The method _setSubject is not named in camelCase.
protected function _setSubject($subject)
{
$this->subject = $subject;
 
return $this;
}
}