• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

LeTraceurSnorkLibrary / MessSaga / 24453420176

15 Apr 2026 12:03PM UTC coverage: 32.786% (-3.8%) from 36.562%
24453420176

Pull #20

github

web-flow
Merge c20d331ae into 4ac78237e
Pull Request #20: feat: tariffs

39 of 280 new or added lines in 14 files covered. (13.93%)

2 existing lines in 2 files now uncovered.

619 of 1888 relevant lines covered (32.79%)

0.69 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/app/Tariffs/AbstractTariff.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace App\Tariffs;
6

7
use App\Tariffs\Contracts\TariffInterface;
8

9
abstract class AbstractTariff implements TariffInterface
10
{
11
    /**
12
     * Tariff's stringed ID
13
     */
14
    public const string TARIFF_NAME = '';
15

16
    /**
17
     * Tariff's label (human-readable)
18
     */
19
    public const string LABEL = '';
20

21
    /**
22
     * Uploaded media files limit in bytes
23
     */
24
    public const int MAX_STORAGE_BYTES = 0;
25

26
    /**
27
     * Uploaded media files count limit
28
     */
29
    public const int MAX_MEDIA_FILES_COUNT = 0;
30

31
    /**
32
     * @inheritdoc
33
     */
34
    public function getName(): string
35
    {
NEW
36
        return static::TARIFF_NAME;
×
37
    }
38

39
    /**
40
     * @inheritdoc
41
     */
42
    public function getLabel(): string
43
    {
NEW
44
        return static::LABEL;
×
45
    }
46

47
    /**
48
     * @inheritdoc
49
     */
50
    public function getMaxStorageBytes(): int
51
    {
NEW
52
        return static::MAX_STORAGE_BYTES;
×
53
    }
54

55
    /**
56
     * @inheritdoc
57
     */
58
    public function getMaxMediaFilesCount(): int
59
    {
NEW
60
        return static::MAX_MEDIA_FILES_COUNT;
×
61
    }
62

63
    /**
64
     * @inheritdoc
65
     */
66
    public function allowsMediaUpload(): bool
67
    {
NEW
68
        return $this->getMaxStorageBytes() > 0 && $this->getMaxMediaFilesCount() > 0;
×
69
    }
70
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc