Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
namespace Hamcrest\Internal;
3
 
4
/*
5
 Copyright (c) 2009 hamcrest.org
6
 */
7
use Hamcrest\Description;
8
use Hamcrest\SelfDescribing;
9
 
10
/**
11
 * A wrapper around any value so that it describes itself.
12
 */
13
class SelfDescribingValue implements SelfDescribing
14
{
15
 
16
    private $_value;
17
 
18
    public function __construct($value)
19
    {
20
        $this->_value = $value;
21
    }
22
 
23
    public function describeTo(Description $description)
24
    {
25
        $description->appendValue($this->_value);
26
    }
27
}