Struct
    
            
            in package
            
        
    
            
            implements
                            IteratorAggregate                    
    
    
Data structure to handle Shifter
Table of Contents
Interfaces
- IteratorAggregate
 
Properties
- $email : string
 - $fiscalCode : string
 - $hireDate : DateTime
 - $idUnit : int
 - $layoffDate : DateTime|null
 - $name : string
 - $surname : string
 - $zucchettiID : string
 
Methods
- __construct() : mixed
 - email() : string
 - Get email
 - fiscalCode() : string
 - Get fiscalCode
 - getIterator() : array<string|int, mixed>
 - Iterate over shifter info
 - hireDate() : DateTime
 - Get hireDate
 - idUnit() : int
 - Get idUnit
 - layoffDate() : DateTime
 - Get layoffDate
 - name() : string
 - Get shifter name
 - surname() : string
 - Get shifter surname
 - zucchettiID() : string
 - Get zucchettiID
 
Properties
        private
            string
    $email
    
    
    
    
    
    
$fiscalCode
        private
            string
    $fiscalCode
    
    
    
    
    
    
$hireDate
        private
            DateTime
    $hireDate
    
    
    
    
    
    
$idUnit
        private
            int
    $idUnit
    
    
    
    
    
    
$layoffDate
        private
            DateTime|null
    $layoffDate
    
    
    
    
    
    
$name
        private
            string
    $name
    
    
    
    
    
    
$surname
        private
            string
    $surname
    
    
    
    
    
    
$zucchettiID
        private
            string
    $zucchettiID
    
    
    
    
    
    
Methods
__construct()
    public
                    __construct(string $zucchettiID, string $name, string $surname, string $fiscalCode, DateTime $hireDate, DateTime|null $layoffDate, int $idUnit, string $email) : mixed
    Parameters
- $zucchettiID : string
 - $name : string
 - $surname : string
 - $fiscalCode : string
 - $hireDate : DateTime
 - $layoffDate : DateTime|null
 - $idUnit : int
 - $email : string
 
email()
Get email
    public
                    email() : string
    Return values
string —fiscalCode()
Get fiscalCode
    public
                    fiscalCode() : string
    Return values
string —fiscalCode
getIterator()
Iterate over shifter info
    public
                    getIterator() : array<string|int, mixed>
    Return values
array<string|int, mixed> —array of all shifter info
hireDate()
Get hireDate
    public
                    hireDate() : DateTime
    Return values
DateTime —hireDate
idUnit()
Get idUnit
    public
                    idUnit() : int
    Return values
int —idUnit
layoffDate()
Get layoffDate
    public
                    layoffDate() : DateTime
    Return values
DateTime —(nullable) layoffDate
name()
Get shifter name
    public
                    name() : string
    Return values
string —name
surname()
Get shifter surname
    public
                    surname() : string
    Return values
string —surname
zucchettiID()
Get zucchettiID
    public
                    zucchettiID() : string
    Return values
string —ZucchettiID