api/laravel/Database/Eloquent/Factories/BelongsToRelationship.yaml

84 lines
2.2 KiB
YAML
Raw Normal View History

2024-09-26 09:03:21 +00:00
name: BelongsToRelationship
class_comment: null
dependencies:
- name: Model
type: class
source: Illuminate\Database\Eloquent\Model
- name: MorphTo
type: class
source: Illuminate\Database\Eloquent\Relations\MorphTo
properties:
- name: factory
visibility: protected
comment: '# * The related factory instance.
# *
# * @var \Illuminate\Database\Eloquent\Factories\Factory|\Illuminate\Database\Eloquent\Model'
- name: relationship
visibility: protected
comment: '# * The relationship name.
# *
# * @var string'
- name: resolved
visibility: protected
comment: '# * The cached, resolved parent instance ID.
# *
# * @var mixed'
methods:
- name: __construct
visibility: public
parameters:
- name: factory
- name: relationship
comment: "# * The related factory instance.\n# *\n# * @var \\Illuminate\\Database\\\
Eloquent\\Factories\\Factory|\\Illuminate\\Database\\Eloquent\\Model\n# */\n#\
\ protected $factory;\n# \n# /**\n# * The relationship name.\n# *\n# * @var string\n\
# */\n# protected $relationship;\n# \n# /**\n# * The cached, resolved parent instance\
\ ID.\n# *\n# * @var mixed\n# */\n# protected $resolved;\n# \n# /**\n# * Create\
\ a new \"belongs to\" relationship definition.\n# *\n# * @param \\Illuminate\\\
Database\\Eloquent\\Factories\\Factory|\\Illuminate\\Database\\Eloquent\\Model\
\ $factory\n# * @param string $relationship\n# * @return void"
- name: attributesFor
visibility: public
parameters:
- name: model
comment: '# * Get the parent model attributes and resolvers for the given child
model.
# *
# * @param \Illuminate\Database\Eloquent\Model $model
# * @return array'
- name: resolver
visibility: protected
parameters:
- name: key
comment: '# * Get the deferred resolver for this relationship''s parent ID.
# *
# * @param string|null $key
# * @return \Closure'
- name: recycle
visibility: public
parameters:
- name: recycle
comment: '# * Specify the model instances to always use when creating relationships.
# *
# * @param \Illuminate\Support\Collection $recycle
# * @return $this'
traits:
- Illuminate\Database\Eloquent\Model
- Illuminate\Database\Eloquent\Relations\MorphTo
interfaces: []