Browse
For agents
About
Depicter — Popup & Slider Builder
/
1.5.2
Depicter — Popup & Slider Builder
v1.5.2
Switch version
4.8.1
trunk
1.0.0
1.1.0
1.1.2
1.1.4
1.1.6
1.1.7
1.1.8
1.1.9
1.2.0
1.3.0
1.3.1
1.3.2
1.3.3
1.3.5
1.3.8
1.5.0
1.5.1
1.5.2
1.5.5
1.6.0
1.6.1
1.6.2
1.7.0
All 76 releases
Overview
Code
depicter
/
app
/
src
/
Document
/
Models
/
Traits
/
HasDocumentIdTrait.php
HasDocumentIdTrait.php
in Depicter — Popup & Slider Builder 1.5.2, at app/src/Document/Models/Traits/HasDocumentIdTrait.php
35 lines
472 B
Find file
t
No matching file
Up and down to move
Enter to open
Esc to close
Raw
Download
Zip
View raw
1
<
?
php
2
namespace
Depicter
\
Document
\
Models
\
Traits
;
3
4
5
trait
HasDocumentIdTrait
6
{
7
/**
8
*
@var
int
|
null
9
*/
10
protected
$
documentID
;
11
12
/**
13
* Gets document ID
14
*
15
*
@return
int
|
null
16
*/
17
public
function
getDocumentID
(
)
{
18
return
$
this
->
documentID
;
19
}
20
21
/**
22
* Sets document ID
23
*
24
*
@param
int
$documentID
25
*
26
*
@return
mixed
27
*/
28
public
function
setDocumentID
(
$
documentID
=
1
)
{
29
if
(
$
documentID
)
{
30
$
this
->
documentID
=
$
documentID
;
31
}
32
return
$
this
;
33
}
34
}
35