AssetsInterface
last analyzed

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 7
Bugs 1 Features 4
Metric Value
c 7
b 1
f 4
dl 0
loc 23

3 Methods

Rating   Name   Duplication   Size   Complexity  
init() 0 1 ?
id() 0 1 ?
src() 0 1 ?
1
<?php
2
/** @formatter:off
3
 * ******************************************************************
4
 * Created by   Marko Kungla on Jun 25, 2016 - 5:44:02 AM
5
 * Contact      [email protected]
6
 * @copyright   2016 Marko Kungla - https://github.com/mkungla
7
 * @license     The MIT License (MIT)
8
 *
9
 * @category       AframeVR
10
 * @package        aframe-php
11
 *
12
 * Lang         PHP (php version >= 7)
13
 * Encoding     UTF-8
14
 * File         AssetsInterface.php
15
 * Code format  PSR-2 and 12
16
 * @link        https://github.com/mkungla/aframe-php
17
 * @issues      https://github.com/mkungla/aframe-php/issues
18
 * ********************************************************************
19
 * Contributors:
20
 * @author Marko Kungla <[email protected]>
21
 * ********************************************************************
22
 * Comments:
23
 * @formatter:on */
24
namespace AframeVR\Interfaces;
25
26
interface AssetsInterface
27
{
28
    /**
29
     * Initialize asset
30
     */
31
    public function init();
0 ignored issues
show
Documentation introduced by
For interfaces and abstract methods it is generally a good practice to add a @return annotation even if it is just @return void or @return null, so that implementors know what to do in the overridden method.

For interface and abstract methods, it is impossible to infer the return type from the immediate code. In these cases, it is generally advisible to explicitly annotate these methods with a @return doc comment to communicate to implementors of these methods what they are expected to return.

Loading history...
32
33
    /**
34
     * Set ID attribute of the asset
35
     *
36
     * @param string $id
37
     * @return void
38
     */
39
    public function id(string $id = '0');
40
41
    /**
42
     * Set Assets src attribute
43
     *
44
     * @param null|string $src
45
     * @return void
46
     */
47
    public function src(string $src = null);
48
}
49