Attach logger to projectlist as observer
[gitphp.git] / include / git / Observer.interface.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
<?php
/**
 * Interface for observer objects
 *
 * @author Christopher Han <xiphux@gmail.com>
 * @copyright Copyright (c) 2012 Christopher Han
 * @package GitPHP
 * @subpackage Git
 */
interface GitPHP_Observer_Interface
{
        /**
         * Change type for data that can be cached
         *
         * @const
         */
        const CacheableDataChange = 1;
 
        /**
         * Notify that observable object changed
         *
         * @param GitPHP_Observable_Interface $object object
         * @param int $changeType type of change
         */
        public function ObjectChanged($object, $changeType);
}
 
comments