for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* ShouldPHP
*
* @author Gabriel Jacinto <[email protected]>
* @status dev
* @link https://github.com/GabrielJMJ/ShouldPHP
* @license MIT
*/
namespace Gabrieljmj\Should;
use Gabrieljmj\Should\ShouldInterface;
abstract class AbstractType
{
* @var \Gabrieljmj\Should\ShouldInterface
protected $should;
* @param string $property
* @param mixed $value
public function __set($property, $value)
if ($property === 'should') {
throw new Exception(sprintf('You can not set the property Gabrieljmj\Should\%s::$should', get_class($this)));
}
$this->{$property} = $value;
* @param \Gabrieljmj\Should\ShouldInterface $should
protected function setShould(ShouldInterface $should)
$this->should = $should;