1 | <?php |
||
18 | class log_service_class extends \eoxia\Singleton_Util { |
||
19 | |||
20 | /** |
||
21 | * Instanciate the log service |
||
22 | */ |
||
23 | protected function construct() {} |
||
24 | |||
25 | /** |
||
26 | * Crée un service par défaut et l'ajoutes au tableau JSON _wpeo_log_settings. |
||
27 | * Renvoie un message de type updated en transient pour afficher qu'un |
||
28 | * nouveau service à été crée. |
||
29 | * |
||
30 | * @param string $name Le nom du service. |
||
31 | */ |
||
32 | public function add( $name ) { |
||
60 | |||
61 | /** |
||
62 | * Get a service definition by id |
||
63 | * |
||
64 | * @param integer $id Service identifier to get complete definition for. |
||
65 | * @return array The service definition |
||
66 | */ |
||
67 | public function get_service_by_id( $id ) { |
||
81 | |||
82 | /** |
||
83 | * Récupères le service selon son nom. |
||
84 | * |
||
85 | * @param string $name Le nom du service. |
||
86 | * |
||
87 | * @return array | null |
||
88 | */ |
||
89 | public static function get_service_by_name( $name ) { |
||
103 | |||
104 | /** |
||
105 | * Create a new service in database in case it does not exists |
||
106 | * |
||
107 | * @param string $service_name The service name to check if it exists or to create if it is not the case. |
||
108 | * |
||
109 | * @return array The service definition |
||
110 | */ |
||
111 | public function create_service( $service_name ) { |
||
121 | |||
122 | } |
||
123 | |||
125 |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()
can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.