123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- <?php
- /*
- * This file is part of PHP CS Fixer.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- * Dariusz Rumiński <dariusz.ruminski@gmail.com>
- *
- * This source file is subject to the MIT license that is bundled
- * with this source code in the file LICENSE.
- */
- namespace PhpCsFixer\Report;
- /**
- * @author Dariusz Rumiński <dariusz.ruminski@gmail.com>
- *
- * @internal
- */
- final class ReportSummary
- {
- /**
- * @var bool
- */
- private $addAppliedFixers = false;
- /**
- * @var array
- */
- private $changed = array();
- /**
- * @var bool
- */
- private $isDecoratedOutput = false;
- /**
- * @var bool
- */
- private $isDryRun = false;
- /**
- * @var int
- */
- private $memory;
- /**
- * @var int
- */
- private $time;
- /**
- * @param array $changed
- * @param int $time duration in milliseconds
- * @param int $memory memory usage in bytes
- * @param bool $addAppliedFixers
- * @param bool $isDryRun
- * @param bool $isDecoratedOutput
- */
- public function __construct(
- array $changed,
- $time,
- $memory,
- $addAppliedFixers,
- $isDryRun,
- $isDecoratedOutput
- ) {
- $this->changed = $changed;
- $this->time = $time;
- $this->memory = $memory;
- $this->addAppliedFixers = $addAppliedFixers;
- $this->isDryRun = $isDryRun;
- $this->isDecoratedOutput = $isDecoratedOutput;
- }
- /**
- * @return bool
- */
- public function isDecoratedOutput()
- {
- return $this->isDecoratedOutput;
- }
- /**
- * @return bool
- */
- public function isDryRun()
- {
- return $this->isDryRun;
- }
- /**
- * @return array
- */
- public function getChanged()
- {
- return $this->changed;
- }
- /**
- * @return int
- */
- public function getMemory()
- {
- return $this->memory;
- }
- /**
- * @return int
- */
- public function getTime()
- {
- return $this->time;
- }
- /**
- * @return bool
- */
- public function shouldAddAppliedFixers()
- {
- return $this->addAppliedFixers;
- }
- }
|