src/Traits/Strings/MacAddressTrait.php
public function getMacAddress() : ?string 
    {
        if ( ! $this->hasMacAddress()) {
            $this->setMacAddress($this->getDefaultMacAddress());
        }
        return $this->macAddress;
    }
public function getMacAddress() : ?string 
    {
        if ( ! $this->hasMacAddress()) {
            $this->setMacAddress($this->getDefaultMacAddress());
        }
        return $this->macAddress;
    }
public function getMacAddress ( ) : ? string { if ( ! $ this -> hasMacAddress ( ) ) { $ this -> setMacAddress ( $ this -> getDefaultMacAddress ( ) ) ; } return $ this -> macAddress ; }
Get mac address

If no "mac address" value has been set, this method will
set and return a default "mac address" value,
if any such value is available

@see getDefaultMacAddress()

@return string|null mac address or null if no mac address has been set
Get mac address