/** * ChunkFileClassMetadata constructor. */ public function __construct() { parent::__construct(array(new ReferenceArrayField('chunks'), new AccessorField('fileHash')), array(new AccessorField('fileHash'), new AccessorField('size'), new AccessorField('mimetype')), 'file', true); }
/** * AClassMetadata constructor. */ public function __construct() { parent::__construct(array(new AccessorField('name')), array(), 'test', true); }
/** * ChunkClassMetadata constructor. */ public function __construct() { parent::__construct(array(new AccessorField('data')), array(new AccessorField('length')), 'chunk', false); }
/** * ReferenceClassMetadata constructor. * * @param UserProviderInterface $userProvider */ public function __construct(UserProviderInterface $userProvider) { parent::__construct(array(new ReferenceField('commit', Commit::class), new UserField('user', $userProvider), new AccessorField('name')), array(new ReferenceField('commit', Commit::class), new UserField('user', $userProvider), new AccessorField('name')), 'reference', false); }
/** * ChunkFileClassMetadata constructor. * * @param array $dataFields * @param array $metadataFields */ public function __construct(array $dataFields, array $metadataFields) { parent::__construct(array_merge($dataFields, array(new AccessorField('name'), new AccessorField('path'), new ReadonlyAccessorField('type'))), array_merge($metadataFields, array(new AccessorField('name'), new AccessorField('path'), new ReadonlyAccessorField('type'))), 'metadata', true); }
/** * ChunkFileClassMetadata constructor. * * @param UserProviderInterface $userProvider */ public function __construct(UserProviderInterface $userProvider) { parent::__construct(array(new ReferenceField('tree', Tree::class), new ReferenceField('parentCommit', Commit::class), new AccessorField('message'), new AccessorField('createdAt'), new UserField('committer', $userProvider)), array(new ReferenceField('tree', Tree::class), new ReferenceField('parentCommit', Commit::class), new AccessorField('message'), new AccessorField('createdAt'), new UserField('committer', $userProvider)), 'reference', true); }