67 lines
2.2 KiB
YAML
67 lines
2.2 KiB
YAML
name: HasOneThrough
|
|
class_comment: '# * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
|
|
|
|
# * @template TIntermediateModel of \Illuminate\Database\Eloquent\Model
|
|
|
|
# * @template TDeclaringModel of \Illuminate\Database\Eloquent\Model
|
|
|
|
# *
|
|
|
|
# * @extends \Illuminate\Database\Eloquent\Relations\HasOneOrManyThrough<TRelatedModel,
|
|
TIntermediateModel, TDeclaringModel, ?TRelatedModel>'
|
|
dependencies:
|
|
- name: Collection
|
|
type: class
|
|
source: Illuminate\Database\Eloquent\Collection
|
|
- name: Model
|
|
type: class
|
|
source: Illuminate\Database\Eloquent\Model
|
|
- name: InteractsWithDictionary
|
|
type: class
|
|
source: Illuminate\Database\Eloquent\Relations\Concerns\InteractsWithDictionary
|
|
- name: SupportsDefaultModels
|
|
type: class
|
|
source: Illuminate\Database\Eloquent\Relations\Concerns\SupportsDefaultModels
|
|
properties: []
|
|
methods:
|
|
- name: getResults
|
|
visibility: public
|
|
parameters: []
|
|
comment: "# * @template TRelatedModel of \\Illuminate\\Database\\Eloquent\\Model\n\
|
|
# * @template TIntermediateModel of \\Illuminate\\Database\\Eloquent\\Model\n\
|
|
# * @template TDeclaringModel of \\Illuminate\\Database\\Eloquent\\Model\n# *\n\
|
|
# * @extends \\Illuminate\\Database\\Eloquent\\Relations\\HasOneOrManyThrough<TRelatedModel,\
|
|
\ TIntermediateModel, TDeclaringModel, ?TRelatedModel>\n# */\n# class HasOneThrough\
|
|
\ extends HasOneOrManyThrough\n# {\n# use InteractsWithDictionary, SupportsDefaultModels;\n\
|
|
# \n# /** @inheritDoc"
|
|
- name: initRelation
|
|
visibility: public
|
|
parameters:
|
|
- name: models
|
|
- name: relation
|
|
comment: '# @inheritDoc'
|
|
- name: match
|
|
visibility: public
|
|
parameters:
|
|
- name: models
|
|
- name: results
|
|
- name: relation
|
|
comment: '# @inheritDoc'
|
|
- name: newRelatedInstanceFor
|
|
visibility: public
|
|
parameters:
|
|
- name: parent
|
|
comment: '# * Make a new related instance for the given model.
|
|
|
|
# *
|
|
|
|
# * @param TDeclaringModel $parent
|
|
|
|
# * @return TRelatedModel'
|
|
traits:
|
|
- Illuminate\Database\Eloquent\Collection
|
|
- Illuminate\Database\Eloquent\Model
|
|
- Illuminate\Database\Eloquent\Relations\Concerns\InteractsWithDictionary
|
|
- Illuminate\Database\Eloquent\Relations\Concerns\SupportsDefaultModels
|
|
- InteractsWithDictionary
|
|
interfaces: []
|