Projet

Général

Profil

Paste
Télécharger (947 octets) Statistiques
| Branche: | Révision:

root / drupal7 / misc / typo3 / phar-stream-wrapper / src / Collectable.php @ fbb66ca6

1
<?php
2
namespace TYPO3\PharStreamWrapper;
3

    
4
/*
5
 * This file is part of the TYPO3 project.
6
 *
7
 * It is free software; you can redistribute it and/or modify it under the terms
8
 * of the MIT License (MIT). For the full copyright and license information,
9
 * please read the LICENSE file that was distributed with this source code.
10
 *
11
 * The TYPO3 project - inspiring people to share!
12
 */
13

    
14
use TYPO3\PharStreamWrapper\Resolver\PharInvocation;
15

    
16
interface Collectable
17
{
18
    /**
19
     * @param PharInvocation $invocation
20
     * @return bool
21
     */
22
    public function has(PharInvocation $invocation);
23

    
24
    /**
25
     * @param PharInvocation $invocation
26
     * @param null $flags
27
     * @return bool
28
     */
29
    public function collect(PharInvocation $invocation, $flags = null);
30

    
31
    /**
32
     * @param callable $callback
33
     * @param bool $reverse
34
     * @return null|PharInvocation
35
     */
36
    public function findByCallback($callback, $reverse = false);
37
}