for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* ResultNotFound.php
*
* @category AngryBytes
* @package Cache
* @subpackage Result
* @copyright Copyright (c) 2010 Angry Bytes BV (http://www.angrybytes.com)
*/
namespace AngryBytes\Cache;
* ResultNotFound
* Result not found identifier
class ResultNotFound
{
* Id that was not found
* @var string
**/
private $id;
* Constructor
* @param string $id
* @return void
@return
Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.
Please refer to the PHP core documentation on constructors.
public function __construct($id)
$this->setId($id);
}
* Get the id
* @return string
public function getId()
return $this->id;
* Set the id
* @return ResultNotFound
public function setId($id)
$this->id = $id;
return $this;
* String overload
public function __toString()
return 'Cache result "' . $this->id . '" was not found';
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.