| 1 | <?php |
||
| 9 | class AttributeModel extends Model implements Attribute |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * {@inheritDoc} |
||
| 13 | */ |
||
| 14 | protected $fillable = ['name']; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * {@inheritDoc} |
||
| 18 | */ |
||
| 19 | protected $table = 'specifications_attributes'; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Helper method to quickly create a new AttributeModel. |
||
| 23 | * |
||
| 24 | * @return \Pbmedia\Specifications\Laravel\Models\AttributeModel |
||
| 25 | */ |
||
| 26 | public static function createWithName($name) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Returns the key by which we can identify this model. |
||
| 33 | * |
||
| 34 | * @throws \Pbmedia\Specifications\Laravel\Exceptions\AttributeModelNotSavedException |
||
| 35 | * @return int |
||
| 36 | */ |
||
| 37 | public function getIdentifier() |
||
| 48 | } |
||
| 49 |