1 <?php
2
3 /**
4 * This file is part of the Grido (https://github.com/o5/grido)
5 *
6 * Copyright (c) 2011 Petr Bugyík (http://petr.bugyik.cz)
7 *
8 * For the full copyright and license information, please view
9 * the file LICENSE.md that was distributed with this source code.
10 */
11
12 namespace Grido\PropertyAccessors;
13
14 /**
15 * @package Grido
16 * @subpackage PropertyAccessors
17 * @author Josef Kříž <pepakriz@gmail.com>
18 */
19 interface IPropertyAccessor
20 {
21 /**
22 * @param mixed $object
23 * @param string $name
24 * @return mixed
25 */
26 public function getProperty($object, $name);
27
28 /**
29 * @param mixed $object
30 * @param string $name
31 * @param string $value
32 * @return void
33 */
34 public function setProperty($object, $name, $value);
35 }
36