Issues (1369)

classes/Pages/Deprecated/PageDeprecated.php (2 issues)

Labels
Severity
1
<?php
2
/**
3
 * Created by Gorlum 08.10.2017 17:36
4
 */
5
6
namespace Pages\Deprecated;
7
8
use \template;
0 ignored issues
show
The type \template was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
9
use \ResultMessages;
0 ignored issues
show
The type \ResultMessages was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
10
11
/**
12
 * Class PageDeprecated
13
 *
14
 * Simple class to streamline somehow refactored page classes
15
 *
16
 * @package Deprecated
17
 */
18
class PageDeprecated {
19
  /**
20
   * @var ResultMessages $resultMessageList
21
   */
22
  protected $resultMessageList;
23
24
25
  public function __construct() {
26
    $this->resultMessageList = new ResultMessages();
27
  }
28
29
  protected function loadParams() {
30
31
  }
32
33
  /**
34
   * Router/Controller for page
35
   */
36
  public function route() {
37
38
  }
39
40
41
  // TODO - move to separate class
42
43
  /**
44
   * @param string $message
45
   * @param int    $status
46
   */
47
  protected function resultAdd($message, $status = ERR_NONE) {
48
    $this->resultMessageList->add($message, $status);
49
  }
50
51
  /**
52
   * @return int
53
   */
54
  protected function resultCount() {
55
    return count($this->resultMessageList);
56
  }
57
58
  /**
59
   * @param template $template
60
   */
61
  protected function resultTemplatize(template $template) {
62
    $this->resultMessageList->templateAdd($template);
63
  }
64
65
  protected function resultReset() {
66
    $this->resultMessageList->reset();
67
  }
68
  // TODO - move to separate class
69
70
}
71