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

conedevelopment / bazar / 20694116184

04 Jan 2026 02:08PM UTC coverage: 68.615% (+4.5%) from 64.117%
20694116184

push

github

iamgergo
version

1679 of 2447 relevant lines covered (68.61%)

25.06 hits per line

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

75.0
/src/Models/PropertyValue.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Cone\Bazar\Models;
6

7
use Cone\Bazar\Database\Factories\PropertyValueFactory;
8
use Cone\Bazar\Interfaces\Models\PropertyValue as Contract;
9
use Cone\Root\Traits\InteractsWithProxy;
10
use Illuminate\Database\Eloquent\Factories\HasFactory;
11
use Illuminate\Database\Eloquent\Model;
12
use Illuminate\Database\Eloquent\Relations\BelongsTo;
13

14
class PropertyValue extends Model implements Contract
15
{
16
    use HasFactory;
17
    use InteractsWithProxy;
18

19
    /**
20
     * The attributes that are mass assignable.
21
     *
22
     * @var list<string>
23
     */
24
    protected $fillable = [
25
        'name',
26
        'value',
27
    ];
28

29
    /**
30
     * The table associated with the model.
31
     *
32
     * @var string
33
     */
34
    protected $table = 'bazar_property_values';
35

36
    /**
37
     * Get the proxied interface.
38
     */
39
    public static function getProxiedInterface(): string
1✔
40
    {
41
        return Contract::class;
1✔
42
    }
43

44
    /**
45
     * Create a new factory instance for the model.
46
     */
47
    protected static function newFactory(): PropertyValueFactory
23✔
48
    {
49
        return PropertyValueFactory::new();
23✔
50
    }
51

52
    /**
53
     * {@inheritdoc}
54
     */
55
    public function getMorphClass(): string
×
56
    {
57
        return static::getProxiedClass();
×
58
    }
59

60
    /**
61
     * Get the property for the property value.
62
     */
63
    public function property(): BelongsTo
15✔
64
    {
65
        return $this->belongsTo(Property::getProxiedClass());
15✔
66
    }
67
}
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