Completed
Push — develop ( b92fd0...28494b )
by
unknown
23:27 queued 12:02
created

InvoiceAddressDraft::getJobId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * YAWIK
4
 *
5
 * @filesource
6
 * @license MIT
7
 * @copyright  2013 - 2016 Cross Solution <http://cross-solution.de>
8
 */
9
  
10
/** */
11
namespace Orders\Entity;
12
13
use Core\Entity\EntityInterface;
14
use Core\Entity\EntityTrait;
15
use Core\Entity\IdentifiableEntityInterface;
16
use Core\Entity\IdentifiableEntityTrait;
17
use Core\Entity\ModificationDateAwareEntityInterface;
18
use Core\Entity\ModificationDateAwareEntityTrait;
19
use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;
20
21
/**
22
 * ${CARET}
23
 *
24
 * @ODM\Document(collection="orders.invoiceaddressdrafts", repositoryClass="\Orders\Repository\InvoiceAddressDrafts")
25
 * @ODM\HasLifecycleCallbacks
26
 * @author Mathias Gelhausen <[email protected]>
27
 * @todo write test 
28
 */
29
class InvoiceAddressDraft implements EntityInterface, IdentifiableEntityInterface, ModificationDateAwareEntityInterface
30
{
31
    use EntityTrait, IdentifiableEntityTrait, ModificationDateAwareEntityTrait;
32
33
34
    /**
35
     *
36
     * @ODM\String
37
     * @ODM\Index
38
     * @var string
39
     */
40
    protected $jobId;
41
42
    /**
43
     *
44
     * @ODM\EmbedOne(targetDocument="\Orders\Entity\InvoiceAddress")
45
     * @var InvoiceAddressInterface
46
     */
47
    protected $invoiceAddress;
48
49
    /**
50
     * @param \Orders\Entity\InvoiceAddressInterface $invoiceAddress
51
     *
52
     * @return self
53
     */
54
    public function setInvoiceAddress($invoiceAddress)
55
    {
56
        $this->invoiceAddress = $invoiceAddress;
57
58
        return $this;
59
    }
60
61
    /**
62
     * @return \Orders\Entity\InvoiceAddressInterface
63
     */
64
    public function getInvoiceAddress()
65
    {
66
        return $this->invoiceAddress;
67
    }
68
69
    /**
70
     * @param string $jobId
71
     *
72
     * @return self
73
     */
74
    public function setJobId($jobId)
75
    {
76
        $this->jobId = $jobId;
77
78
        return $this;
79
    }
80
81
    /**
82
     * @return string
83
     */
84
    public function getJobId()
85
    {
86
        return $this->jobId;
87
    }
88
}