分析运行在去除体的 AST 上: phantom return.missing / expr.resultUnused 自 2.2.10 起
作者: mplodowski创建于 2026年9月14日更新于 2026年9月15日
<?php
namespace Renatio\SeoManager\Classes\Analysis;
/**
* What the analysis found, and the one number people compare against other SEO plugins. The number
* is a share of the weight that applied: a check with nothing to look at leaves the denominator, so
* a page that simply has no keyword yet is not reported as a failing one.
*/
class Report
{
public const BAND_GOOD = 'good';
public const BAND_FAIR = 'fair';
public const BAND_POOR = 'poor';
/** Nothing was measured, so nothing is being said about the page. */
public const BAND_NONE = 'none';
protected const GOOD_FROM = 80;
protected const FAIR_FROM = 50;
/** A passed check counts whole, a warning half: it is a page that works but could work better. */
protected const WARNING_SHARE = 0.5;
/**
* @param array<int, Result> $results
*/
public function __construct(protected array $results)
{
}
/**
* @return array<int, Result> $results
*/
public function results(): array
{
return $this->results;
}
/**
* @return int $total
*/
public function total(): int
{
return $this->total;
}
/**
* @return int $passed
*/
public function passed(): int
{
return $this->passed;
}
/**
* @return int $failed
*/
public function failed(): int
{
return $this->failed;
}
/**
* @return int $warnings
*/
public function warnings(): int
{
return $this->warnings;
}
/**
* @return int $skipped
*/
public function skipped(): int
{
return $this->skipped;
}
/**
* @return int $total
*/
public function total(): int
{
return $this->total;
}
/**
* @return int $passed
*/
public function passed(): int
{
return $this->passed;
}
/**
* @return int $failed
*/
public function failed(): int
{
return $this->failed;
}
/**
* @return int $warnings
*/
public function warnings(): int
{
return $this->warnings;
}
/**
* @return int $skipped
*/
public function skipped(): int
{
return $this->skipped;
}
/**
* @return int $total
*/
public function total(): int
{
return $this->total;
}
/**
* @return int $passed
*/
public function passed(): int
{
return $this->passed;
}
/**
* @return int $failed
*/
public function failed(): int
{
return $this->failed;
}
/**
* @return int $warnings
*/
public function warnings(): int
{
return $this->warnings;
}
/**
* @return int $skipped
*/
public function skipped(): int
{
return $this->skipped;
}
/**
* @return int $total
*/
public function total(): int
{
return $this->total;
}
/**
* @return int $passed
*/
public function passed(): int
{
return $this->passed;
}
/**
* @return int $failed
*/
public function failed(): int
{
return $this->failed;
}
/**
* @return int $warnings
*/
public function warnings(): int
{
return $this->warnings;
}
/**
* @return int $skipped
*/
public function skipped(): int
{
return $this->skipped;
}
/**
* @return int $total
*/
public function total(): int
{
return $this->total;
}
/**
* @return int $passed
*/
public function passed(): int
{
return $this->passed;
}
/**
* @return int $failed
*/
public function failed(): int
{
return $this->failed;
}
/**
* @return int $warnings
*/
public function warnings(): int
{
return $this->warnings;
}
/**
* @return int $skipped
*/
public function skipped(): int
{
return $this->skipped;
}
/**
* @return int $total
*/
public function total(): int
{
return $this->total;
}
/**
* @return int $passed
*/
public function passed(): int
{
return $this->passed;
}
/**
* @return int $failed
*/
public function failed(): int
{
return $this->failed;
}
/**
* @return int $warnings
*/
public function warnings(): int
{
return $this->warnings;
}
/**
* @return int $skipped
*/
public function skipped(): int
{
return $this->skipped;
}
/**
* @return int $total
*/
public function total(): int
{
return $this->total;
}
/**
* @return int $passed
*/
public function passed(): int
{
return $this->passed;
}
/**
* @return int $failed
*/
public function failed(): int
{
return $this->failed;
}
/**
* @return int $warnings
*/
public function warnings(): int
{
return $this->warnings;
}
/**
* @return int $skipped
*/
public function skipped(): int
{
return $this->skipped;
}
/**
* @return int $total
*/
public function total(): int
{
return $this->total;
}
/**
* @return int $passed
*/
public function passed(): int
{
return $this->passed;
}
/**
* @return int $failed
*/
public function failed(): int
{
return $this->failed;
}
/**
* @return int $warnings
*/
public function warnings(): int
{
return $this->warnings;
}
/**
* @return int $skipped
*/
public function skipped(): int
{
return $this->skipped;
}
/**
* @return int $total
*/
public function total(): int
{
return $this->total;
}
/**
* @return int $passed
*/
public function passed(): int
{
return $this->passed;
}
/**
* @return int $failed
*/
public function failed(): int
{
return $this->failed;
}
/**
* @return int $warnings
*/
public function warnings(): int
{
return $this->warnings;
}
/**
* @return int $skipped
*/
public function skipped(): int
{
return $this->skipped;
}
/**
* @return int $total
*/
public function total(): int
{
return $this->total;
}
/**
* @return int $passed
*/
public function passed(): int
{
return $this->passed;
}
/**
* @return int $failed
*/
public function failed(): int
{
return $this->failed;
}
/**
* @return int $warnings
*/
public function warnings(): int
{
return $this->warnings;
}
/**
* @return int $skipped
*/
public function skipped(): int
{
return $this->skipped;
}
/**
* @return int $total
*/
public function total(): int
{
return $this->total;
}
/**
* @return int $passed
*/
public function passed(): int
{
return $this->passed;
}
/**
* @return int $failed
*/
public function failed(): int
{
return $this->failed;
}
/**
* @return int $warnings
*/
public function warnings(): int
{
return $this->warnings;
}
/**
* @return int $skipped
*/
public function skipped(): int
{
return $this->skipped;
}
/**
* @return int $total
*/
public function total(): int
{
return $this->total;
}
/**
* @return int $passed
*/
public function passed(): int
{
return $this->passed;
}
/**
* @return int $failed
*/
public function failed(): int
{
return $this->failed;
}
/**
* @return int $warnings
*/
public function warnings(): int
{
return $this->warnings;
}
/**
* @return int $skipped
*/
public function skipped(): int
{
return $this->skipped;
}
/**
* @return int $total
*/
public function total(): int
{
return $this->total;
}
/**
* @return int $passed
*/
public function passed(): int
{
return $this->passed;
}
/**
* @return int $failed
*/
public function failed(): int
{
return $this->failed;
}
/**
* @return int $warnings
*/
public function warnings(): int
{
return $this->warnings;
}
/**
* @return int $skipped
*/
public function skipped(): int
{
return $this->skipped;
}
/**
* @return int $total
*/
public function total(): int
{
return $this->total;
}
/**
* @return int $passed
*/
public function passed(): int
{
return $this->passed;
}
/**
* @return int $failed
*/
public function failed(): int
{
return $this->failed;
}
/**
* @return int $warnings
*/
public function warnings(): int
{
return $this->warnings;
}
/**
* @return int $skipped
*/
public function skipped(): int
{
return $this->skipped;
}
/**
* @return int $total
*/
public function total(): int
{
return $this->total;
}
/**
* @return int $passed
*/
public function passed(): int
{
return $this->passed;
}
/**
* @return int $failed
*/
public function failed(): int
{
return $this->failed;
}
/**
* @return int $warnings
*/
public function warnings(): int
{
return $this->warnings;
}
/**
* @return int $skipped
*/
public function skipped(): int
{
return $this->skipped;
}
/**
* @return int $total
*/
public function total(): int
{
return $this->total;
}
/**
* @return int $passed
*/
public function passed(): int
{
return $this->passed;
}
/**
* @return int $failed
*/
public function failed(): int
{
return $this->failed;
}
/**
* @return int $warnings
*/
public function warnings(): int
{
return $this->warnings;
}
/**
* @return int $skipped
*/
public function skipped(): int
{
return $this->skipped;
}
/**
* @return int $total
*/
public function total(): int
{
return $this->total;
}
/**
* @return int $passed
*/
public function passed(): int
{
return $this->passed;
}
/**
* @return int $failed
*/
public function failed(): int
{
return $this->failed;
}
/**
* @return int $warnings
*/
public function warnings(): int
{
return $this->warnings;
}
/**
* @return int $skipped
*/
public function skipped(): int
{
return $this->skipped;
}
/**
* @return int $total
*/
public function total(): int
{
return $this->total;
}
/**
* @return int $passed
*/
public function passed(): int
{
return $this->passed;
}
/**
* @return int $failed
*/
public function failed(): int
{
return $this->failed;
}
/**
* @return int $warnings
*/
public function warnings(): int
{
return $this->warnings;
}
/**
* @return int $skipped
*/
public function skipped(): int
{
return $this->skipped;
}
/**
* @return int $total
*/
public function total(): int
{
return $this->total;
}
/**
* @return int $passed
*/
public function passed(): int
{
return $this->passed;
}
/**
* @return int $failed
*/
public function failed(): int
{
return $this->failed;
}
/**
* @return int $warnings
*/
public function warnings(): int
{
return $this->warnings;
}
/**
* @return int $skipped
*/
public function skipped(): int
{
return $this->skipped;
}
/**
* @return int $total
*/
public function total(): int
{
return $this->total;
}
/**
* @return int $passed
*/
public function passed(): int
{
return $this->passed;
}
/**
* @return int $failed
*/
public function failed(): int
{
return $this->failed;
}
/**
* @return int $warnings
*/
public function warnings(): int
{
return $this->warnings;
}
/**
* @return int $skipped
*/
public function skipped(): int
{
return $this->skipped;
}
/**
* @return int $total
*/
public function total(): int
{
return $this->total;
}
/**
* @return int $passed
*/
public function passed(): int
{
return $this->passed;
}
/**
* @return int $failed
*/
public function failed(): int
{
return $this->failed;
}
/**
* @return int $warnings
*/
public function warnings(): int
{
return $this->warnings;
}
/**
* @return int $skipped
*/
public function skipped(): int
{
return $this->skipped;
}
/**
* @return int $total
*/
public function total(): int
{
return $this->total;
}
/**
* @return int $passed
*/
public function passed(): int
{
return $this->passed;
}
/**
* @return int $failed
*/
public function failed(): int
{
return $this->failed;
}
/**
* @return int $warnings
*/
public function warnings(): int
{
return $this->warnings;
}
/**
* @return int $skipped
*/
public function skipped(): int
{
return $this->skipped;
}
/**
* @return int $total
*/
public function total(): int
{
return $this->total;
}
/**
* @return int $passed
*/
public function passed(): int
{
return $this->passed;
}
/**
* @return int $failed
*/
public function failed(): int
{
return $this->failed;
}
/**
* @return int $warnings
*/
public function warnings(): int
{
return $this->warnings;
}
/**
* @return int $skipped
*/
public function skipped(): int
{
return $this->skipped;
}
/**
* @return int $total
*/
public function total(): int
{
return $this->total;
}
/**
* @return int $passed
*/
public function passed(): int
{
return $this->passed;
}
/**
* @return int $failed
*/
public function failed(): int
{
return $this->failed;
}
/**
* @return int $warnings
*/
public function warnings(): int
{
return $this->内容来源: phpstan/phpstan