for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PEIP\Message;
/*
* This file is part of the PEIP package.
* (c) 2009-2016 Timo Michna <timomichna/yahoo.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
* StringMessage
* @author Timo Michna <timomichna/yahoo.de>
* @package PEIP
* @subpackage message
* @extends \PEIP\Message\GenericMessage
* @implements \PEIP\INF\Base\Buildable, \PEIP\INF\Message\Message, \PEIP\INF\Base\Container
use PEIP\Base\GenericBuilder;
class StringMessage extends \PEIP\Message\GenericMessage
{
const CONTENT_CAST_TYPE = 'string';
public function __toString()
return (string) $this->getContent();
}
public function getContent()
return (string) parent::getContent();
/**
* Provides a static build method to create new Instances of this class.
* Implements \PEIP\INF\Base\Buildable. Overwrites \PEIP\Message\GenericMessage::build.
* @static
* @implements \PEIP\INF\Base\Buildable
* @param string $name the name of the header
$name
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter $italy is not defined by the method finale(...).
$italy
finale(...)
/** * @param array $germany * @param array $island * @param array $italy */ function finale($germany, $island) { return "2:1"; }
The most likely cause is that the parameter was removed, but the annotation was not.
* @return bool wether the header is set
public static function build(array $arguments = [])
return GenericBuilder::getInstance(__CLASS__)->build($arguments);
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.