Skip to content

Commit 662d91c

Browse files
charlescunicojaapio
authored andcommitted
Renamed classes Mixed and Resource
1 parent e2967c3 commit 662d91c

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

src/Types/Mixed_.php

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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<[email protected]>
9+
* @license http://www.opensource.org/licenses/mit-license.php MIT
10+
* @link http://phpdoc.org
11+
*/
12+
13+
namespace phpDocumentor\Reflection\Types;
14+
15+
use phpDocumentor\Reflection\Type;
16+
17+
/**
18+
* Value Object representing an unknown, or mixed, type.
19+
*/
20+
final class Mixed_ implements Type
21+
{
22+
/**
23+
* Returns a rendered output of the Type as it would be used in a DocBlock.
24+
*
25+
* @return string
26+
*/
27+
public function __toString()
28+
{
29+
return 'mixed';
30+
}
31+
}

src/Types/Resource_.php

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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<[email protected]>
9+
* @license http://www.opensource.org/licenses/mit-license.php MIT
10+
* @link http://phpdoc.org
11+
*/
12+
13+
namespace phpDocumentor\Reflection\Types;
14+
15+
use phpDocumentor\Reflection\Type;
16+
17+
/**
18+
* Value Object representing the 'resource' Type.
19+
*/
20+
final class Resource_ implements Type
21+
{
22+
/**
23+
* Returns a rendered output of the Type as it would be used in a DocBlock.
24+
*
25+
* @return string
26+
*/
27+
public function __toString()
28+
{
29+
return 'resource';
30+
}
31+
}

0 commit comments

Comments
 (0)