1<?php
2/**
3 * This file is part of phpDocumentor.
4 *
5 * For the full copyright and license information, please view the LICENSE
6 * file that was distributed with this source code.
7 *
8 * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
9 * @license   http://www.opensource.org/licenses/mit-license.php MIT
10 * @link      http://phpdoc.org
11 */
12
13namespace phpDocumentor\Reflection\Types;
14
15use phpDocumentor\Reflection\Type;
16
17/**
18 * Value Object representing the 'static' type.
19 *
20 * Self, as a Type, represents the class in which the associated element was called. This differs from self as self does
21 * not take inheritance into account but static means that the return type is always that of the class of the called
22 * element.
23 *
24 * See the documentation on late static binding in the PHP Documentation for more information on the difference between
25 * static and self.
26 */
27final class Static_ implements Type
28{
29    /**
30     * Returns a rendered output of the Type as it would be used in a DocBlock.
31     *
32     * @return string
33     */
34    public function __toString()
35    {
36        return 'static';
37    }
38}
39