StatisticsInterface::createReferencePoint()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
1
<?php
2
3
namespace ArjanSchouten\HtmlMinifier\Statistics;
4
5
interface StatisticsInterface
6
{
7
    /**
8
     * Add a step and measure the input size.
9
     *
10
     * @param string $inputSize
11
     * @param string $keyname
0 ignored issues
show
Documentation introduced by
Should the type for parameter $keyname not be string|null?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
12
     *
13
     * @return array
14
     */
15
    public function createReferencePoint($inputSize, $keyname = null);
16
17
    /**
18
     * Get all the steps which are measured.
19
     *
20
     * @return array
21
     */
22
    public function getReferencePoints();
23
24
    /**
25
     * Get the total saved bytes in bytes.
26
     *
27
     * @return int
28
     */
29
    public function getTotalSavedBytes();
30
}
31