public function getAll()
    {
        $result = [
            self::ENTRY_ID           => $this->_id,
            self::ENTRY_NAME         => $this->_name,
            self::ENTRY_WAIT_SYNC    => $this->_waitForSync,
            self::ENTRY_JOURNAL_SIZE => $this->_journalSize,
            self::ENTRY_IS_SYSTEM    => $this->_isSystem,
            self::ENTRY_IS_VOLATILE  => $this->_isVolatile,
            self::ENTRY_TYPE         => $this->_type,
            self::ENTRY_STATUS       => $this->_status,
            self::ENTRY_KEY_OPTIONS  => $this->_keyOptions
        ];

        if (null !== $this->_numberOfShards) {
            $result[self::ENTRY_NUMBER_OF_SHARDS] = $this->_numberOfShards;
        }
        
        if (null !== $this->_replicationFactor) {
            $result[self::ENTRY_REPLICATION_FACTOR] = $this->_replicationFactor;
        }
        
        if (null !== $this->_shardingStrategy) {
            $result[self::ENTRY_SHARDING_STRATEGY] = $this->_shardingStrategy;
        }

        if (is_array($this->_shardKeys)) {
            $result[self::ENTRY_SHARD_KEYS] = $this->_shardKeys;
        }

        return $result;
    }
public function getAll()
    {
        $result = [
            self::ENTRY_ID           => $this->_id,
            self::ENTRY_NAME         => $this->_name,
            self::ENTRY_WAIT_SYNC    => $this->_waitForSync,
            self::ENTRY_JOURNAL_SIZE => $this->_journalSize,
            self::ENTRY_IS_SYSTEM    => $this->_isSystem,
            self::ENTRY_IS_VOLATILE  => $this->_isVolatile,
            self::ENTRY_TYPE         => $this->_type,
            self::ENTRY_STATUS       => $this->_status,
            self::ENTRY_KEY_OPTIONS  => $this->_keyOptions
        ];

        if (null !== $this->_numberOfShards) {
            $result[self::ENTRY_NUMBER_OF_SHARDS] = $this->_numberOfShards;
        }
        
        if (null !== $this->_replicationFactor) {
            $result[self::ENTRY_REPLICATION_FACTOR] = $this->_replicationFactor;
        }
        
        if (null !== $this->_shardingStrategy) {
            $result[self::ENTRY_SHARDING_STRATEGY] = $this->_shardingStrategy;
        }

        if (is_array($this->_shardKeys)) {
            $result[self::ENTRY_SHARD_KEYS] = $this->_shardKeys;
        }

        return $result;
    }
public function getAll ( ) { $ result = [ self :: ENTRY_ID => $ this -> _id , self :: ENTRY_NAME => $ this -> _name , self :: ENTRY_WAIT_SYNC => $ this -> _waitForSync , self :: ENTRY_JOURNAL_SIZE => $ this -> _journalSize , self :: ENTRY_IS_SYSTEM => $ this -> _isSystem , self :: ENTRY_IS_VOLATILE => $ this -> _isVolatile , self :: ENTRY_TYPE => $ this -> _type , self :: ENTRY_STATUS => $ this -> _status , self :: ENTRY_KEY_OPTIONS => $ this -> _keyOptions ] ; if ( null !== $ this -> _numberOfShards ) { $ result [ self :: ENTRY_NUMBER_OF_SHARDS ] = $ this -> _numberOfShards ; } if ( null !== $ this -> _replicationFactor ) { $ result [ self :: ENTRY_REPLICATION_FACTOR ] = $ this -> _replicationFactor ; } if ( null !== $ this -> _shardingStrategy ) { $ result [ self :: ENTRY_SHARDING_STRATEGY ] = $ this -> _shardingStrategy ; } if ( is_array ( $ this -> _shardKeys ) ) { $ result [ self :: ENTRY_SHARD_KEYS ] = $ this -> _shardKeys ; } return $ result ; }
Get all collection attributes

@return array - array of all collection attributes
Get all collection attributes