platform/api/laravel/Database/Eloquent/Relations/HasManyThrough.yaml
2024-09-02 10:44:11 -07:00

58 lines
2.1 KiB
YAML

name: HasManyThrough
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, \Illuminate\Database\Eloquent\Collection<int,
TRelatedModel>>'
dependencies:
- name: Collection
type: class
source: Illuminate\Database\Eloquent\Collection
- name: InteractsWithDictionary
type: class
source: Illuminate\Database\Eloquent\Relations\Concerns\InteractsWithDictionary
- name: InteractsWithDictionary
type: class
source: InteractsWithDictionary
properties: []
methods:
- name: one
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, \\Illuminate\\Database\\Eloquent\\Collection<int,\
\ TRelatedModel>>\n# */\n# class HasManyThrough extends HasOneOrManyThrough\n\
# {\n# use InteractsWithDictionary;\n# \n# /**\n# * Convert the relationship to\
\ a \"has one through\" relationship.\n# *\n# * @return \\Illuminate\\Database\\\
Eloquent\\Relations\\HasOneThrough<TRelatedModel, TIntermediateModel, TDeclaringModel>"
- 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: getResults
visibility: public
parameters: []
comment: '# @inheritDoc'
traits:
- Illuminate\Database\Eloquent\Collection
- Illuminate\Database\Eloquent\Relations\Concerns\InteractsWithDictionary
- InteractsWithDictionary
interfaces: []