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

SameOldNick / SameOldWebsite / 15666164139

15 Jun 2025 06:29PM UTC coverage: 88.045% (+24.3%) from 63.784%
15666164139

push

github

SameOldNick
Fixed method name

28443 of 32305 relevant lines covered (88.05%)

702.17 hits per line

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

0.0
/app/Models/State.php
1
<?php
2

3
namespace App\Models;
4

5
use Illuminate\Database\Eloquent\Model;
6
use Illuminate\Database\Eloquent\Relations\BelongsTo;
7

8
/**
9
 * @property int $id
10
 * @property string $country_code
11
 * @property string $code
12
 * @property string $state
13
 * @property-read Country $country
14
 */
15
class State extends Model
16
{
17
    /**
18
     * Indicates if the model should be timestamped.
19
     *
20
     * @var bool
21
     */
22
    public $timestamps = false;
23

24
    /**
25
     * The attributes that are mass assignable.
26
     *
27
     * @var list<string>
28
     */
29
    protected $fillable = ['code', 'state'];
30

31
    /**
32
     * The attributes that should be visible in serialization.
33
     *
34
     * @var list<string>
35
     */
36
    protected $visible = ['code', 'state'];
37

38
    /**
39
     * Gets the country for this state
40
     */
41
    public function country(): BelongsTo
42
    {
43
        return $this->belongsTo(Country::class);
×
44
    }
45

46
    /**
47
     * Gets state as readable string
48
     *
49
     * @return string
50
     */
51
    public function __toString()
52
    {
53
        return $this->state;
×
54
    }
55
}
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