updateDMSDocumentRequestForm()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
class StubDMSDocumentCheckoutPageExtension extends Extension 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...
4
{
5
    /**
6
     * For method {@link DMSCheckoutController::DMSDocumentRequestForm}
7
     *
8
     * @param  Form $form
9
     */
10
    public function updateDMSDocumentRequestForm(Form $form)
11
    {
12
        $form->Fields()->push(TextField::create('NewTextField'));
13
    }
14
15
    /**
16
     * For method {@link DMSCheckoutController::DMSDocumentRequestForm}
17
     *
18
     * @param Email $email
19
     */
20
    public function updateSend(Email $email)
21
    {
22
        $email->setSubject('Subject is changed');
23
    }
24
25
    /**
26
     * For method {@link DMSCheckoutController::DMSDocumentRequestForm}
27
     *
28
     * @param  Form $form
29
     */
30
    public function updateDMSCartEditForm(Form $form)
31
    {
32
        $form->Fields()->push(TextField::create('NewTextField'));
33
    }
34
}
35