Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
52 lines (45 loc) · 1006 Bytes

File metadata and controls

52 lines (45 loc) · 1006 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/**
* This file is part of phpDocumentor.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @copyright 2010-2016 Mike van Riel<mike@phpdoc.org>
* @license http://www.opensource.org/licenses/mit-license.php MIT
* @link http://phpdoc.org
*/
namespace phpDocumentor\DomainModel\ReadModel;
final class ReadModel
{
/** @var Definition */
private $definition;
/** @var mixed */
private $data;
public function __construct(Definition $definition, $data)
{
$this->definition = $definition;
$this->data = $data;
}
/**
* @return string
*/
public function getName()
{
return $this->definition->getName();
}
/**
* @return mixed
*/
public function getData()
{
return $this->data;
}
/**
* @return mixed
*/
public function __invoke()
{
return $this->data;
}
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.