public function getArrayCopy() : array
    {
        $values = get_object_vars($this);
        foreach ($values as $property => $value) {
            // Skip relations
            if (is_object($value)) {
                unset($values[$property]);
            }
        }

        return $values;
    }
public function getArrayCopy() : array
    {
        $values = get_object_vars($this);
        foreach ($values as $property => $value) {
            // Skip relations
            if (is_object($value)) {
                unset($values[$property]);
            }
        }

        return $values;
    }
public function getArrayCopy ( ) : array { $ values = get_object_vars ( $ this ) ; foreach ( $ values as $ property => $ value ) { // Skip relations if ( is_object ( $ value ) ) { unset ( $ values [ $ property ] ) ; } } return $ values ; }
Gets an array copy
Gets an array copy