Completed
Push — master ( 5bea2f...19eca5 )
by Franco
03:11 queued 40s
created

tests/Stub/StubDocumentSetMockExtension.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
/**
4
 * Class StubDocumentSetMockExtension
5
 *
6
 * @package dms
7
 */
8
class StubDocumentSetMockExtension extends DataExtension implements TestOnly
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
9
{
10
    /**
11
     *
12
     * For method {@link DMSDocumentSet::addQueryFields}
13
     *
14
     * @param FieldList $fields
15
     *
16
     * @return FieldList
17
     */
18
    public function updateQueryFields($fields)
19
    {
20
        $fields->addFieldToTab('Root.QueryBuilder', new TextField('ExtendedField'));
21
22
        return $fields;
23
    }
24
}
25