protected function identifiersToArray(): array
    {
        $data = [];

        foreach ($this->getIdentifiers() as $identifier)
        {
            $data[] = $identifier->toArray();
        }

        return $data;
    }
protected function identifiersToArray(): array
    {
        $data = [];

        foreach ($this->getIdentifiers() as $identifier)
        {
            $data[] = $identifier->toArray();
        }

        return $data;
    }
protected function identifiersToArray ( ) : array { $ data = [ ] ; foreach ( $ this -> getIdentifiers ( ) as $ identifier ) { $ data [ ] = $ identifier -> toArray ( ) ; } return $ data ; }
Cast identifiers to an array

@return array
Cast identifiers to an array