Struct
    
            
            in package
            
        
    
            
            implements
                            IteratorAggregate                    
    
    
Data structure to handle Shift
Table of Contents
Interfaces
- IteratorAggregate
 
Properties
- $data : Datetime
 - $flnnumber : int
 - $groupId : int
 - $idEmployee : int
 - $idSubject : string
 - $idTypeShift : int
 - $name : string
 - $whenAdded : Datetime
 
Methods
- __construct() : mixed
 - data() : string
 - Get data
 - dataZucchettiFormat() : string
 - Get data zucchetti format
 - flnnumber() : int
 - Get flow number (1 is the actual shift)
 - getIterator() : array<string|int, mixed>
 - Iterate over shift info
 - groupId() : int
 - Get groupId of the username who add this row
 - idEmployee() : int
 - Get idEmployee
 - idSubject() : string
 - Get idSubject
 - idTypeShift() : int
 - Get idTypeShift
 - name() : string
 - Get username who add this row
 - whenAdded() : Datetime
 - Get whenAdded
 
Properties
$data
        private
            Datetime
    $data
    
    
    
    
    
    
$flnnumber
        private
            int
    $flnnumber
    
    
    
    
    
    
$groupId
        private
            int
    $groupId
    
    
    
    
    
    
$idEmployee
        private
            int
    $idEmployee
    
    
    
    
    
    
$idSubject
        private
            string
    $idSubject
    
    
    
    
    
    
$idTypeShift
        private
            int
    $idTypeShift
    
    
    
    
    
    
$name
        private
            string
    $name
    
    
    
    
    
    
$whenAdded
        private
            Datetime
    $whenAdded
    
    
    
    
    
    
Methods
__construct()
    public
                    __construct(Datetime $data, int $idTypeShift, string $idSubject, int $idEmployee, int $flnnumber, Datetime $whenAdded, string $name, int $groupId) : mixed
    Parameters
- $data : Datetime
 - $idTypeShift : int
 - $idSubject : string
 - $idEmployee : int
 - $flnnumber : int
 - $whenAdded : Datetime
 - $name : string
 - $groupId : int
 
data()
Get data
    public
                    data() : string
    Return values
string —data in YYYY-MM-DD format
dataZucchettiFormat()
Get data zucchetti format
    public
                    dataZucchettiFormat() : string
    Return values
string —data in dd/mm/yyyy format
flnnumber()
Get flow number (1 is the actual shift)
    public
                    flnnumber() : int
    Return values
int —flow number (1 is the actual shift)
getIterator()
Iterate over shift info
    public
                    getIterator() : array<string|int, mixed>
    Return values
array<string|int, mixed> —array of all shift info
groupId()
Get groupId of the username who add this row
    public
                    groupId() : int
    Return values
int —groupId of the username who add this row
idEmployee()
Get idEmployee
    public
                    idEmployee() : int
    Return values
int —idEmployee according to zucchetti ID
idSubject()
Get idSubject
    public
                    idSubject() : string
    Return values
string —idSubject in [A-Z]{6}[0-9]{6} format
idTypeShift()
Get idTypeShift
    public
                    idTypeShift() : int
    Return values
int —idTypeShift according to zucchetti ID
name()
Get username who add this row
    public
                    name() : string
    Return values
string —username who add this row
whenAdded()
Get whenAdded
    public
                    whenAdded() : Datetime
    Return values
Datetime —whenAdded in YYYY-MM-DD format