for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of dispositif/wikibot application (@github)
* 2019-2023 © Philippe M./Irønie <[email protected]>
* For the full copyright and MIT license information, view the license file.
*/
declare(strict_types=1);
namespace App\Application\OuvrageEdit;
/**
* todo choisir/clarifier redondance avec WikiPageAction !!
* See also Application/OuvrageComplete/CitationStatus and Domain/OptiStatus
class PageWorkStatus
{
* @var string
protected $title;
public $wikiText = null;
public $errorWarning = [];
public $featured_article = false;
public $citationSummary = [];
public $importantSummary = [];
public $nbRows = 0;
public $notCosmetic = false;
// Minor flag on edit
public $minorFlag = true;
// WikiBotConfig flag on edit
public $botFlag = true;
public $citationVersion = '';
public $luckyState = false;
public function __construct(string $title)
$this->title = $title;
}
public function getTitle(): ?string
return $this->title;
public function addErrorWarning(string $text): void
if (empty($this->errorWarning) || !in_array($text, $this->errorWarning)) {
$this->errorWarning[] = $text;
public function addSummaryTag(string $tag)
if (!in_array($tag, $this->importantSummary)) {
$this->importantSummary[] = $tag;