Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2/**
3 *
4 * This file is part of the phpBB Forum Software package.
5 *
6 * @copyright (c) phpBB Limited <https://www.phpbb.com>
7 * @license GNU General Public License, version 2 (GPL-2.0)
8 *
9 * For full copyright and license information, please see
10 * the docs/CREDITS.txt file.
11 *
12 */
13
14namespace phpbb\files\types;
15
16use phpbb\files\upload;
17
18interface type_interface
19{
20    /**
21     * Handle upload for upload types. Arguments passed to this method will be
22     * handled by the upload type classes themselves.
23     *
24     * @return \phpbb\files\filespec_storage|\phpbb\files\filespec|bool Filespec instance if upload is
25     *                                    successful or false if not
26     */
27    public function upload();
28
29    /**
30     * Set upload instance
31     * Needs to be executed before every upload.
32     *
33     * @param upload $upload Upload instance
34     *
35     * @return type_interface Returns itself
36     */
37    public function set_upload(upload $upload);
38}