GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — master (#74)
by
unknown
09:19
created

Folder::getNumChildren()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 16

Duplication

Lines 16
Ratio 100 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 16
loc 16
ccs 0
cts 13
cp 0
rs 9.7333
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
namespace Dkd\PhpCmis\DataObjects;
3
4
/*
5
 * This file is part of php-cmis-client.
6
 *
7
 * (c) Sascha Egerer <[email protected]>
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
13
use Dkd\PhpCmis\CmisObject\CmisObjectInterface;
14
use Dkd\PhpCmis\Constants;
15
use Dkd\PhpCmis\Data\AceInterface;
16
use Dkd\PhpCmis\Data\DocumentInterface;
17
use Dkd\PhpCmis\Data\FailedToDeleteDataInterface;
18
use Dkd\PhpCmis\Data\FolderInterface;
19
use Dkd\PhpCmis\Data\ItemInterface;
20
use Dkd\PhpCmis\Data\ObjectIdInterface;
21
use Dkd\PhpCmis\Data\ObjectInFolderContainerInterface;
22
use Dkd\PhpCmis\Data\ObjectTypeInterface;
23
use Dkd\PhpCmis\Data\PolicyInterface;
24
use Dkd\PhpCmis\Enum\IncludeRelationships;
25
use Dkd\PhpCmis\Enum\UnfileObject;
26
use Dkd\PhpCmis\Enum\VersioningState;
27
use Dkd\PhpCmis\Exception\CmisRuntimeException;
28
use Dkd\PhpCmis\OperationContextInterface;
29
use Dkd\PhpCmis\PropertyIds;
30
use Dkd\PhpCmis\TreeInterface;
31
use GuzzleHttp\Stream\StreamInterface;
32
33
/**
34
 * Cmis folder implementation
35
 */
36
class Folder extends AbstractFileableCmisObject implements FolderInterface
37
{
38
    /**
39
     * Creates a new document in this folder.
40
     *
41
     * @param array $properties The property values that MUST be applied to the object. The array key is the property
42
     *     name the value is the property value.
43
     * @param StreamInterface $contentStream
44
     * @param VersioningState $versioningState An enumeration specifying what the versioning state of the newly-created
45
     *     object MUST be. Valid values are:
46
     *      <code>none</code>
47
     *          (default, if the object-type is not versionable) The document MUST be created as a non-versionable
48
     *          document.
49
     *     <code>checkedout</code>
50
     *          The document MUST be created in the checked-out state. The checked-out document MAY be
51
     *          visible to other users.
52
     *     <code>major</code>
53
     *          (default, if the object-type is versionable) The document MUST be created as a major version.
54
     *     <code>minor</code>
55
     *          The document MUST be created as a minor version.
56
     * @param PolicyInterface[] $policies A list of policy ids that MUST be applied to the newly-created document
57
     *     object.
58
     * @param AceInterface[] $addAces A list of ACEs that MUST be added to the newly-created document object, either
59
     *     using the ACL from folderId if specified, or being applied if no folderId is specified.
60
     * @param AceInterface[] $removeAces A list of ACEs that MUST be removed from the newly-created document object,
61
     *     either using the ACL from folderId if specified, or being ignored if no folderId is specified.
62
     * @param OperationContextInterface|null $context
63
     * @return DocumentInterface|null the new folder object or <code>null</code> if the parameter <code>context</code>
64
     *     was set to <code>null</code>
65
     * @throws CmisRuntimeException Exception is thrown if the created object is not a document
66
     */
67 View Code Duplication
    public function createDocument(
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
68
        array $properties,
69
        StreamInterface $contentStream,
70
        VersioningState $versioningState,
71
        array $policies = [],
72
        array $addAces = [],
73
        array $removeAces = [],
74
        OperationContextInterface $context = null
75
    ) {
76
        $newObjectId = $this->getSession()->createDocument(
77
            $properties,
78
            $this,
79
            $contentStream,
80
            $versioningState,
81
            $policies,
82
            $addAces,
83
            $removeAces
84
        );
85
86
        $document = $this->getNewlyCreatedObject($newObjectId, $context);
87
88
        if ($document === null) {
89
            return null;
90
        } elseif (!$document instanceof DocumentInterface) {
91
            throw new CmisRuntimeException('Newly created object is not a document! New id: ' . $document->getId());
92
        }
93
94
        return $document;
95
    }
96
97
    /**
98
     * Creates a new document from a source document in this folder.
99
     *
100
     * @param ObjectIdInterface $source The ID of the source document.
101
     * @param array $properties The property values that MUST be applied to the object. The array key is the property
102
     *     name the value is the property value.
103
     * @param VersioningState $versioningState An enumeration specifying what the versioning state of the newly-created
104
     *     object MUST be. Valid values are:
105
     *      <code>none</code>
106
     *          (default, if the object-type is not versionable) The document MUST be created as a non-versionable
107
     *          document.
108
     *     <code>checkedout</code>
109
     *          The document MUST be created in the checked-out state. The checked-out document MAY be
110
     *          visible to other users.
111
     *     <code>major</code>
112
     *          (default, if the object-type is versionable) The document MUST be created as a major version.
113
     *     <code>minor</code>
114
     *          The document MUST be created as a minor version.
115
     * @param PolicyInterface[] $policies A list of policy ids that MUST be applied to the newly-created document
116
     *     object.
117
     * @param AceInterface[] $addAces A list of ACEs that MUST be added to the newly-created document object, either
118
     *     using the ACL from folderId if specified, or being applied if no folderId is specified.
119
     * @param AceInterface[] $removeAces A list of ACEs that MUST be removed from the newly-created document object,
120
     *     either using the ACL from folderId if specified, or being ignored if no folderId is specified.
121
     * @param OperationContextInterface|null $context
122
     * @return DocumentInterface|null the new folder object or <code>null</code> if the parameter <code>context</code>
123
     *     was set to <code>null</code>
124
     * @throws CmisRuntimeException Exception is thrown if the created object is not a document
125
     */
126 View Code Duplication
    public function createDocumentFromSource(
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
127
        ObjectIdInterface $source,
128
        array $properties,
129
        VersioningState $versioningState,
130
        array $policies = [],
131
        array $addAces = [],
132
        array $removeAces = [],
133
        OperationContextInterface $context = null
134
    ) {
135
        $newObjectId = $this->getSession()->createDocumentFromSource(
136
            $source,
137
            $properties,
138
            $this,
139
            $versioningState,
140
            $policies,
141
            $addAces,
142
            $removeAces
143
        );
144
145
        $document = $this->getNewlyCreatedObject($newObjectId, $context);
146
147
        if ($document === null) {
148
            return null;
149
        } elseif (!$document instanceof DocumentInterface) {
150
            throw new CmisRuntimeException('Newly created object is not a document! New id: ' . $document->getId());
151
        }
152
153
        return $document;
154
    }
155
156
    /**
157
     * Creates a new subfolder in this folder.
158
     *
159
     * @param array $properties The property values that MUST be applied to the newly-created item object.
160
     * @param PolicyInterface[] $policies A list of policy ids that MUST be applied to the newly-created folder object.
161
     * @param AceInterface[] $addAces A list of ACEs that MUST be added to the newly-created folder object, either
162
     *     using the ACL from folderId if specified, or being applied if no folderId is specified.
163
     * @param AceInterface[] $removeAces A list of ACEs that MUST be removed from the newly-created folder object,
164
     *     either using the ACL from folderId if specified, or being ignored if no folderId is specified.
165
     * @param OperationContextInterface|null $context
166
     * @return FolderInterface|null the new folder object or <code>null</code> if the parameter <code>context</code>
167
     *     was set to <code>null</code>
168
     * @throws CmisRuntimeException Exception is thrown if the created object is not a folder
169
     */
170 View Code Duplication
    public function createFolder(
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
171
        array $properties,
172
        array $policies = [],
173
        array $addAces = [],
174
        array $removeAces = [],
175
        OperationContextInterface $context = null
176
    ) {
177
        $newObjectId = $this->getSession()->createFolder($properties, $this, $policies, $addAces, $removeAces);
178
179
        $folder = $this->getNewlyCreatedObject($newObjectId, $context);
180
181
        if ($folder === null) {
182
            return null;
183
        } elseif (!$folder instanceof FolderInterface) {
184
            throw new CmisRuntimeException('Newly created object is not a folder! New id: ' . $folder->getId());
185
        }
186
187
        return $folder;
188
    }
189
190
    /**
191
     * Creates a new item in this folder.
192
     *
193
     * @param array $properties The property values that MUST be applied to the newly-created item object.
194
     * @param PolicyInterface[] $policies A list of policy ids that MUST be applied to the newly-created item object.
195
     * @param AceInterface[] $addAces A list of ACEs that MUST be added to the newly-created item object, either using
196
     *     the ACL from folderId if specified, or being applied if no folderId is specified.
197
     * @param AceInterface[] $removeAces A list of ACEs that MUST be removed from the newly-created item object, either
198
     *     using the ACL from folderId if specified, or being ignored if no folderId is specified.
199
     * @param OperationContextInterface|null $context
200
     * @return ItemInterface|null the new item object
201
     * @throws CmisRuntimeException Exception is thrown if the created object is not a item
202
     */
203 View Code Duplication
    public function createItem(
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
204
        array $properties,
205
        array $policies = [],
206
        array $addAces = [],
207
        array $removeAces = [],
208
        OperationContextInterface $context = null
209
    ) {
210
        $newObjectId = $this->getSession()->createItem($properties, $this, $policies, $addAces, $removeAces);
211
212
        $item = $this->getNewlyCreatedObject($newObjectId, $context);
213
214
        if ($item === null) {
215
            return null;
216
        } elseif (!$item instanceof ItemInterface) {
217
            throw new CmisRuntimeException('Newly created object is not a item! New id: ' . $item->getId());
218
        }
219
220
        return $item;
221
    }
222
223
    /**
224
     * Creates a new policy in this folder.
225
     *
226
     * @param array $properties The property values that MUST be applied to the newly-created policy object.
227
     * @param PolicyInterface[] $policies A list of policy ids that MUST be applied to the newly-created policy object.
228
     * @param AceInterface[] $addAces A list of ACEs that MUST be added to the newly-created policy object, either
229
     *     using the ACL from folderId if specified, or being applied if no folderId is specified.
230
     * @param AceInterface[] $removeAces A list of ACEs that MUST be removed from the newly-created policy object,
231
     *     either using the ACL from folderId if specified, or being ignored if no folderId is specified.
232
     * @param OperationContextInterface|null $context
233
     * @return PolicyInterface|null the new policy object
234
     * @throws CmisRuntimeException Exception is thrown if the created object is not a policy
235
     */
236 View Code Duplication
    public function createPolicy(
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
237
        array $properties,
238
        array $policies = [],
239
        array $addAces = [],
240
        array $removeAces = [],
241
        OperationContextInterface $context = null
242
    ) {
243
        $newObjectId = $this->getSession()->createPolicy($properties, $this, $policies, $addAces, $removeAces);
244
245
        $policy = $this->getNewlyCreatedObject($newObjectId, $context);
246
247
        if ($policy === null) {
248
            return null;
249
        } elseif (!$policy instanceof PolicyInterface) {
250
            throw new CmisRuntimeException('Newly created object is not a policy! New id: ' . $policy->getId());
251
        }
252
253
        return $policy;
254
    }
255
256
    /**
257
     * Deletes this folder and all subfolders.
258
     *
259
     * @param boolean $allVersions If <code>true</code>, then delete all versions of all documents. If
260
     *     <code>false</code>, delete only the document versions referenced in the tree. The repository MUST ignore the
261
     *     value of this parameter when this service is invoked on any non-document objects or non-versionable document
262
     *     objects.
263
     * @param UnfileObject $unfile An enumeration specifying how the repository MUST process file-able child- or
264
     *     descendant-objects.
265
     * @param boolean $continueOnFailure If <code>true</code>, then the repository SHOULD continue attempting to
266
     *     perform this operation even if deletion of a child- or descendant-object in the specified folder cannot be
267
     *     deleted. If <code>false</code>, then the repository SHOULD abort this method when it fails to
268
     *     delete a single child object or descendant object.
269
     * @return FailedToDeleteDataInterface A list of identifiers of objects in the folder tree that were not deleted.
270
     */
271
    public function deleteTree($allVersions, UnfileObject $unfile, $continueOnFailure = true)
272
    {
273
        $failed = $this->getBinding()->getObjectService()->deleteTree(
274
            $this->getRepositoryId(),
275
            $this->getId(),
276
            $allVersions,
277
            $unfile,
278
            $continueOnFailure
279
        );
280
281
        if (count($failed->getIds()) === 0) {
282
            $this->getSession()->removeObjectFromCache($this);
283
        }
284
285
        return $failed;
286
    }
287
288
    /**
289
     * Returns all checked out documents in this folder using the given OperationContext.
290
     *
291
     * @param OperationContextInterface|null $context
292
     * @return DocumentInterface[] A list of checked out documents.
293
     */
294
    public function getCheckedOutDocs(OperationContextInterface $context = null)
295
    {
296
        $context = $this->ensureContext($context);
297
        $checkedOutDocs = $this->getBinding()->getNavigationService()->getCheckedOutDocs(
298
            $this->getRepositoryId(),
299
            $this->getId(),
300
            $context->getQueryFilterString(),
301
            $context->getOrderBy(),
302
            $context->isIncludeAllowableActions(),
303
            $context->getIncludeRelationships(),
304
            $context->getRenditionFilterString()
305
        );
306
307
        $result = [];
308
        $objectFactory = $this->getObjectFactory();
309
        foreach ($checkedOutDocs->getObjects() as $objectData) {
310
            $document = $objectFactory->convertObject($objectData, $context);
311
            if (!($document instanceof DocumentInterface)) {
312
                // should not happen but could happen if the repository is not implemented correctly ...
313
                continue;
314
            }
315
316
            $result[] = $document;
317
        }
318
319
        return $result;
320
    }
321
322
    /**
323
     * Returns the children of this folder using the given OperationContext.
324
     *
325
     * @param OperationContextInterface|null $context
326
     * @return CmisObjectInterface[] A list of the child objects for the specified folder.
327
     */
328
    public function getChildren(OperationContextInterface $context = null, $skipCount = 0)
329
    {
330
        $context = $this->ensureContext($context);
331
        $children = $this->getBinding()->getNavigationService()->getChildren(
332
            $this->getRepositoryId(),
333
            $this->getId(),
334
            $context->getQueryFilterString(),
335
            $context->getOrderBy(),
336
            $context->isIncludeAllowableActions(),
337
            $context->getIncludeRelationships(),
338
            $context->getRenditionFilterString(),
339
            $context->isIncludePathSegments(),
340
            $context->getMaxItemsPerPage(),
341
            $skipCount
342
        );
343
344
        $result = [];
345
        $objectFactory = $this->getObjectFactory();
346
        foreach ($children->getObjects() as $objectData) {
347
            if ($objectData->getObject() !== null) {
348
                $result[] = $objectFactory->convertObject($objectData->getObject(), $context);
349
            }
350
        }
351
352
        return $result;
353
    }
354
355
    /**
356
     * Returns the number of children of this folder using the given OperationContext.
357
     *
358
     * @param OperationContextInterface|null $context
359
     * @return int Total number of children.
360
     */
361 View Code Duplication
    public function getNumChildren(OperationContextInterface $context = null)
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
362
    {
363
        $context = $this->ensureContext($context);
364
        $children = $this->getBinding()->getNavigationService()->getChildren(
365
            $this->getRepositoryId(),
366
            $this->getId(),
367
            $context->getQueryFilterString(),
368
            $context->getOrderBy(),
369
            $context->isIncludeAllowableActions(),
370
            $context->getIncludeRelationships(),
371
            $context->getRenditionFilterString(),
372
            $context->isIncludePathSegments()
373
        );
374
375
        return $children->getNumItems();
376
    }
377
378
    /**
379
     * Gets the folder descendants starting with this folder.
380
     *
381
     * @param integer $depth
382
     * @param OperationContextInterface|null $context
383
     * @return TreeInterface A tree that contains FileableCmisObject objects
384
     * @see FileableCmisObject FileableCmisObject contained in returned TreeInterface
385
     */
386 View Code Duplication
    public function getDescendants($depth, OperationContextInterface $context = null)
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
387
    {
388
        $context = $this->ensureContext($context);
389
        $containerList = $this->getBinding()->getNavigationService()->getDescendants(
390
            $this->getRepositoryId(),
391
            $this->getId(),
392
            (int) $depth,
393
            $context->getQueryFilterString(),
394
            $context->isIncludeAllowableActions(),
395
            $context->getIncludeRelationships(),
396
            $context->getRenditionFilterString(),
397
            $context->isIncludePathSegments()
398
        );
399
400
        return $this->convertBindingContainer($containerList, $context);
401
    }
402
403
    /**
404
     * Gets the parent folder object.
405
     *
406
     * @return FolderInterface|null the parent folder object or <code>null</code> if the folder is the root folder.
407
     */
408
    public function getFolderParent()
409
    {
410
        if ($this->isRootFolder()) {
411
            return null;
412
        }
413
414
        $parents = $this->getParents($this->getSession()->getDefaultContext());
415
416
        // return the first element of the array
417
        $parent = reset($parents);
418
419
        if (!$parent instanceof FolderInterface) {
420
            return null;
421
        }
422
423
        return $parent;
424
    }
425
426
    /**
427
     * Gets the folder tree starting with this folder using the given OperationContext.
428
     *
429
     * @param integer $depth The number of levels of depth in the folder hierarchy from which to return results.
430
     *    Valid values are:
431
     *    1
432
     *      Return only objects that are children of the folder. See also getChildren.
433
     *    <Integer value greater than 1>
434
     *      Return only objects that are children of the folder and descendants up to <value> levels deep.
435
     *    -1
436
     *      Return ALL descendant objects at all depth levels in the CMIS hierarchy.
437
     *      The default value is repository specific and SHOULD be at least 2 or -1.
438
     * @param OperationContextInterface|null $context
439
     * @return TreeInterface A tree that contains FileableCmisObject objects
440
     * @see FileableCmisObject FileableCmisObject contained in returned TreeInterface
441
     */
442 View Code Duplication
    public function getFolderTree($depth, OperationContextInterface $context = null)
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
443
    {
444
        $context = $this->ensureContext($context);
445
        $containerList = $this->getBinding()->getNavigationService()->getFolderTree(
446
            $this->getRepositoryId(),
447
            $this->getId(),
448
            (int) $depth,
449
            $context->getQueryFilterString(),
450
            $context->isIncludeAllowableActions(),
451
            $context->getIncludeRelationships(),
452
            $context->getRenditionFilterString(),
453
            $context->isIncludePathSegments()
454
        );
455
456
        return $this->convertBindingContainer($containerList, $context);
457
    }
458
459
    /**
460
     * Returns the path of the folder.
461
     *
462
     * @return string the absolute folder path
463
     */
464
    public function getPath()
465
    {
466
        $path = $this->getPropertyValue(PropertyIds::PATH);
467
468
        // if the path property isn't set, get it
469
        if ($path === null) {
470
            $objectData = $this->getBinding()->getObjectService()->getObject(
471
                $this->getRepositoryId(),
472
                $this->getId(),
473
                $this->getPropertyQueryName(PropertyIds::PATH),
474
                false,
475
                IncludeRelationships::cast(IncludeRelationships::NONE),
476
                Constants::RENDITION_NONE,
477
                false,
478
                false
479
            );
480
481
            if ($objectData !== null
482
                && $objectData->getProperties() !== null
483
                && $objectData->getProperties()->getProperties() !== null
484
            ) {
485
                $objectProperties = $objectData->getProperties()->getProperties();
486
                if (isset($objectProperties[PropertyIds::PATH])
487
                    && $objectProperties[PropertyIds::PATH] instanceof PropertyString
488
                ) {
489
                    $path = $objectProperties[PropertyIds::PATH]->getFirstValue();
490
                }
491
            }
492
        }
493
494
        // we still don't know the path ... it's not a CMIS compliant repository
495
        if ($path === null) {
496
            throw new CmisRuntimeException('Repository didn\'t return ' . PropertyIds::PATH . '!');
497
        }
498
499
        return $path;
500
    }
501
502
    /**
503
     * Returns if the folder is the root folder.
504
     *
505
     * @return boolean <code>true</code> if the folder is the root folder, <code>false</code> otherwise
506
     */
507
    public function isRootFolder()
508
    {
509
        return $this->getSession()->getRepositoryInfo()->getRootFolderId() === $this->getId();
510
    }
511
512
    /**
513
     * Returns the list of the allowed object types in this folder (CMIS property cmis:allowedChildObjectTypeIds).
514
     * If the list is empty or <code>null</code> all object types are allowed.
515
     *
516
     * @return ObjectTypeInterface[] the property value or <code>null</code> if the property hasn't been requested,
517
     *     hasn't been provided by the repository, or the property value isn't set
518
     */
519
    public function getAllowedChildObjectTypes()
520
    {
521
        $result = [];
522
523
        $objectTypeIds = $this->getPropertyValue(PropertyIds::ALLOWED_CHILD_OBJECT_TYPE_IDS);
524
        if ($objectTypeIds === null) {
525
            return $result;
526
        }
527
528
        foreach ($objectTypeIds as $objectTypeId) {
529
            $result[] = $this->getSession()->getTypeDefinition($objectTypeId);
530
        }
531
532
        return $result;
533
    }
534
535
    /**
536
     * Returns the parent id or <code>null</code> if the folder is the root folder (CMIS property cmis:parentId).
537
     *
538
     * @return string|null the property value or <code>null</code> if the property hasn't been requested, hasn't
539
     *      been provided by the repository, or the folder is the root folder
540
     */
541
    public function getParentId()
542
    {
543
        return $this->getPropertyValue(PropertyIds::PARENT_ID);
544
    }
545
546
547
    /**
548
     * Converts a binding container into an API container.
549
     *
550
     * @param ObjectInFolderContainerInterface[] $bindingContainerList
551
     * @param OperationContextInterface $context
552
     * @return TreeInterface[]
553
     */
554
    private function convertBindingContainer(array $bindingContainerList, OperationContextInterface $context)
0 ignored issues
show
Unused Code introduced by
The parameter $bindingContainerList is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $context is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
555
    {
556
        // TODO implement when Tree and ObjectInFolderContainer is implemented
557
        throw new \Exception('Not yet implemented!');
558
    }
559
}
560