for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Nexendrie\Menu;
use Nette\Localization\ITranslator;
/**
* Menu
*
* @author Jakub Konečný
*/
class Menu extends Collection {
public string $title = "";
public string $name;
public string $htmlId;
public ITranslator $translator;
public function __construct(string $name = "default", string $htmlId = "menu") {
parent::__construct();
$this->name = $name;
$this->htmlId = $htmlId;
$this->translator = new class implements ITranslator {
Nette\Localization\ITranslator
If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated annotation
ignore-deprecated
$this->translator = new class implements /** @scrutinizer ignore-deprecated */ ITranslator {
This interface has been deprecated. The supplier of the interface has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the interface will be removed and what other interface to use instead.
public function translate($message, ... $parameters): string {
return $message;
}
};
* @deprecated Access the property directly
public function getTitle(): string {
return $this->title;
public function setTitle(string $title): void {
$this->title = $title;
public function getName(): string {
return $this->name;
protected function setName(string $name): void {
public function getHtmlId(): string {
return $this->htmlId;
public function setHtmlId(string $htmlId): void {
public function getTranslator(): ITranslator {
return $this->translator;
public function setTranslator(ITranslator $translator): void {
$this->translator = $translator;
?>
This interface has been deprecated. The supplier of the interface has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the interface will be removed and what other interface to use instead.