61 lines
1.4 KiB
YAML
61 lines
1.4 KiB
YAML
|
name: HasMany
|
||
|
class_comment: '# * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
|
||
|
|
||
|
# * @template TDeclaringModel of \Illuminate\Database\Eloquent\Model
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @extends \Illuminate\Database\Eloquent\Relations\HasOneOrMany<TRelatedModel,
|
||
|
TDeclaringModel, \Illuminate\Database\Eloquent\Collection<int, TRelatedModel>>'
|
||
|
dependencies:
|
||
|
- name: Collection
|
||
|
type: class
|
||
|
source: Illuminate\Database\Eloquent\Collection
|
||
|
properties: []
|
||
|
methods:
|
||
|
- name: one
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
|
||
|
|
||
|
# * @template TDeclaringModel of \Illuminate\Database\Eloquent\Model
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @extends \Illuminate\Database\Eloquent\Relations\HasOneOrMany<TRelatedModel,
|
||
|
TDeclaringModel, \Illuminate\Database\Eloquent\Collection<int, TRelatedModel>>
|
||
|
|
||
|
# */
|
||
|
|
||
|
# class HasMany extends HasOneOrMany
|
||
|
|
||
|
# {
|
||
|
|
||
|
# /**
|
||
|
|
||
|
# * Convert the relationship to a "has one" relationship.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return \Illuminate\Database\Eloquent\Relations\HasOne<TRelatedModel, TDeclaringModel>'
|
||
|
- name: getResults
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# @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'
|
||
|
traits:
|
||
|
- Illuminate\Database\Eloquent\Collection
|
||
|
interfaces: []
|