forked from phalcon/ide-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMemory.php
49 lines (43 loc) · 1.01 KB
/
Memory.php
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
<?php
/* This file is part of the Phalcon Framework.
*
* (c) Phalcon Team <team@phalcon.io>
*
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/
namespace Phalcon\Annotations\Adapter;
use Phalcon\Annotations\Reflection;
/**
* Stores the parsed annotations in memory. This adapter is the suitable
* development/testing
*/
class Memory extends \Phalcon\Annotations\Adapter\AbstractAdapter
{
/**
* @var mixed
*/
protected $data;
public function __construct()
{
}
/**
* Reads parsed annotations from memory
*
* @param string $key
* @return bool|Reflection
*/
public function read(string $key): Reflection|bool
{
}
/**
* Writes parsed annotations to memory
*
* @param string $key
* @param \Phalcon\Annotations\Reflection $data
* @return void
*/
public function write(string $key, \Phalcon\Annotations\Reflection $data): void
{
}
}