lundi 4 juillet 2016

List of class parameter in interface or in class : Laravel 5.2.37

Sample class

class abc {
   public string Name;
} 

Sample Interface

interface Iabc {
   public function All(List<abc> list);
}

In .NET, we can have list of objects as parameter like above. In Laravel 5.2 I tried to do something like that but it was giving error.

interface IAbc {
    public function All(List<abc> $list);
}

Can you please suggest any recommended way in this context?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire