1212use CasParser \Core \Attributes \Api ;
1313use CasParser \Core \Concerns \SdkModel ;
1414use CasParser \Core \Contracts \BaseModel ;
15- use CasParser \Core \Conversion \ListOf ;
1615
1716final class Holdings implements BaseModel
1817{
1918 use SdkModel;
2019
2120 /** @var list<Aif>|null $aifs */
22- #[Api(type: new ListOf ( Aif::class) , optional: true )]
21+ #[Api(list: Aif::class, optional: true )]
2322 public ?array $ aifs ;
2423
2524 /** @var list<CorporateBond>|null $corporateBonds */
26- #[Api(
27- 'corporate_bonds ' ,
28- type: new ListOf (CorporateBond::class),
29- optional: true
30- )]
25+ #[Api('corporate_bonds ' , list: CorporateBond::class, optional: true )]
3126 public ?array $ corporateBonds ;
3227
3328 /** @var list<DematMutualFund>|null $dematMutualFunds */
34- #[Api(
35- 'demat_mutual_funds ' ,
36- type: new ListOf (DematMutualFund::class),
37- optional: true ,
38- )]
29+ #[Api('demat_mutual_funds ' , list: DematMutualFund::class, optional: true )]
3930 public ?array $ dematMutualFunds ;
4031
4132 /** @var list<Equity>|null $equities */
42- #[Api(type: new ListOf ( Equity::class) , optional: true )]
33+ #[Api(list: Equity::class, optional: true )]
4334 public ?array $ equities ;
4435
4536 /** @var list<GovernmentSecurity>|null $governmentSecurities */
4637 #[Api(
4738 'government_securities ' ,
48- type: new ListOf ( GovernmentSecurity::class) ,
49- optional: true ,
39+ list: GovernmentSecurity::class,
40+ optional: true
5041 )]
5142 public ?array $ governmentSecurities ;
5243
@@ -61,11 +52,11 @@ public function __construct()
6152 *
6253 * You must use named parameters to construct any parameters with a default value.
6354 *
64- * @param list<Aif>|null $aifs
65- * @param list<CorporateBond>|null $corporateBonds
66- * @param list<DematMutualFund>|null $dematMutualFunds
67- * @param list<Equity>|null $equities
68- * @param list<GovernmentSecurity>|null $governmentSecurities
55+ * @param list<Aif> $aifs
56+ * @param list<CorporateBond> $corporateBonds
57+ * @param list<DematMutualFund> $dematMutualFunds
58+ * @param list<Equity> $equities
59+ * @param list<GovernmentSecurity> $governmentSecurities
6960 */
7061 public static function with (
7162 ?array $ aifs = null ,
0 commit comments