1 | <?php |
||
36 | class FilterSessionPredicate implements PredicateInterface |
||
37 | { |
||
38 | |||
39 | /** |
||
40 | * The session-ID we want to filter for. |
||
41 | * |
||
42 | * @var string |
||
43 | */ |
||
44 | protected $sessionId; |
||
45 | |||
46 | /** |
||
47 | * Initializes the predicate with the session-ID we want to filter. |
||
48 | * |
||
49 | * @param string $sessionId The session-ID we want to filter |
||
50 | */ |
||
51 | public function __construct($sessionId) |
||
55 | |||
56 | /** |
||
57 | * This method evaluates the object passed as parameter against |
||
58 | * the anything specified in the evaluate method. |
||
59 | * |
||
60 | * @param object $object The object that should be evaluated |
||
61 | * |
||
62 | * @return boolean Returns a boolean depending on the implementation of the method |
||
63 | */ |
||
64 | public function evaluate($object) |
||
68 | |||
69 | /** |
||
70 | * Compares the session-ID of the passed session with the |
||
71 | * internal one and returns TRUE if they match. |
||
72 | * |
||
73 | * @param \AppserverIo\RemoteMethodInvocation\SessionInterface $session The session to compare the ID with |
||
74 | * |
||
75 | * @return boolean TRUE if the IDs are equal, else FALSE |
||
76 | */ |
||
77 | protected function compare(SessionInterface $session) |
||
81 | } |
||
82 |