/**
* Generate collection class from a schema object.
*
* @param DeclareSchema $schema
* @return array class name, class file path
*/
public function generateCollectionClass(DeclareSchema $schema)
{
$cTemplate = CollectionClassFactory::create($schema);
return $this->updateClassFile($cTemplate, $schema, false);
}