-
Notifications
You must be signed in to change notification settings - Fork 0
/
Token.php
36 lines (30 loc) · 790 Bytes
/
Token.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
namespace Models;
use Models\Base\Token as BaseToken;
use Models\Map\TokenTableMap;
/**
* Skeleton subclass for representing a row from the 'token' table.
*
*
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
*/
class Token extends BaseToken {
public function setScope($scope) {
$v = $scope;
if (is_array($scope)) {
$v = implode(' ', $scope);
}
if ($v !== null) {
$v = (string)$v;
}
if ($this->scope !== $v) {
$this->scope = $v;
$this->modifiedColumns[TokenTableMap::COL_SCOPE] = true;
}
return $this;
}
}