コード例 #1
0
 /**
  * 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);
 }
コード例 #2
0
 /**
  * AClassMetadata constructor.
  */
 public function __construct()
 {
     parent::__construct(array(new AccessorField('name')), array(), 'test', true);
 }
コード例 #3
0
 /**
  * ChunkClassMetadata constructor.
  */
 public function __construct()
 {
     parent::__construct(array(new AccessorField('data')), array(new AccessorField('length')), 'chunk', false);
 }
コード例 #4
0
 /**
  * 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);
 }
コード例 #5
0
 /**
  * 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);
 }
コード例 #6
0
 /**
  * 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);
 }