Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
/**
3
 * Mockery
4
 *
5
 * LICENSE
6
 *
7
 * This source file is subject to the new BSD license that is bundled
8
 * with this package in the file LICENSE.txt.
9
 * It is also available through the world-wide-web at this URL:
10
 * http://github.com/padraic/mockery/blob/master/LICENSE
11
 * If you did not receive a copy of the license and are unable to
12
 * obtain it through the world-wide-web, please send an email
13
 * to padraic@php.net so we can send you a copy immediately.
14
 *
15
 * @category   Mockery
16
 * @package    Mockery
17
 * @copyright  Copyright (c) 2010 Pádraic Brady (http://blog.astrumfutura.com)
18
 * @license    http://github.com/padraic/mockery/blob/master/LICENSE New BSD License
19
 */
20
 
21
namespace Mockery\Generator;
22
 
23
interface TargetClassInterface
24
{
25
    /**
26
     * Returns a new instance of the current
27
     * TargetClassInterface's
28
     * implementation.
29
     *
30
     * @param string $name
31
     * @return TargetClassInterface
32
     */
33
    public static function factory($name);
34
 
35
    /**
36
     * Returns the targetClass's name.
37
     *
38
     * @return string
39
     */
40
    public function getName();
41
 
42
    /**
43
     * Returns the targetClass's methods.
44
     *
45
     * @return array
46
     */
47
    public function getMethods();
48
 
49
    /**
50
     * Returns the targetClass's interfaces.
51
     *
52
     * @return array
53
     */
54
    public function getInterfaces();
55
 
56
    /**
57
     * Returns the targetClass's namespace name.
58
     *
59
     * @return string
60
     */
61
    public function getNamespaceName();
62
 
63
    /**
64
     * Returns the targetClass's short name.
65
     *
66
     * @return string
67
     */
68
    public function getShortName();
69
 
70
    /**
71
     * Returns whether the targetClass is abstract.
72
     *
73
     * @return boolean
74
     */
75
    public function isAbstract();
76
 
77
    /**
78
     * Returns whether the targetClass is final.
79
     *
80
     * @return boolean
81
     */
82
    public function isFinal();
83
 
84
    /**
85
     * Returns whether the targetClass is in namespace.
86
     *
87
     * @return boolean
88
     */
89
    public function inNamespace();
90
 
91
    /**
92
     * Returns whether the targetClass is in
93
     * the passed interface.
94
     *
95
     * @param mixed $interface
96
     * @return boolean
97
     */
98
    public function implementsInterface($interface);
99
 
100
    /**
101
     * Returns whether the targetClass has
102
     * an internal ancestor.
103
     *
104
     * @return boolean
105
     */
106
    public function hasInternalAncestor();
107
}