/usr/share/php/Sstalle/php7cc/CompatibilityViolation/AbstractContext.php is in php7cc 1.1.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | <?php
namespace Sstalle\php7cc\CompatibilityViolation;
use Sstalle\php7cc\Error\CheckError;
abstract class AbstractContext implements ContextInterface
{
/**
* @var array|Message[]
*/
protected $messages = array();
/**
* @var CheckError[]
*/
protected $errors = array();
/**
* @param Message $message
*/
public function addMessage(Message $message)
{
$this->messages[] = $message;
}
/**
* @return array|Message[]
*/
public function getMessages()
{
return $this->messages;
}
/**
* {@inheritdoc}
*/
public function addError(CheckError $error)
{
$this->errors[] = $error;
}
/**
* {@inheritdoc}
*/
public function getErrors()
{
return $this->errors;
}
/**
* {@inheritdoc}
*/
public function hasMessagesOrErrors()
{
return $this->messages || $this->errors;
}
}
|