src/Client.php
public final function getCookies() : array
   {

      if ( ! $this->getCookieFile() )
      {
         return [];
      }

      unset( $this->_curlHandle );

      $text = \file_get_contents( $this->getCookieFile() );

      $cookies = [];
      foreach ( \explode( "\n", $text ) as $line )
      {
         $parts = explode( "\t", $line );
         if ( 7 === \count( $parts ) )
         {
            $cookies[ $parts[ 5 ] ] = $parts[ 6 ];
         }
      }

      return $cookies;

   }
public final function getCookies() : array
   {

      if ( ! $this->getCookieFile() )
      {
         return [];
      }

      unset( $this->_curlHandle );

      $text = \file_get_contents( $this->getCookieFile() );

      $cookies = [];
      foreach ( \explode( "\n", $text ) as $line )
      {
         $parts = explode( "\t", $line );
         if ( 7 === \count( $parts ) )
         {
            $cookies[ $parts[ 5 ] ] = $parts[ 6 ];
         }
      }

      return $cookies;

   }
public final function getCookies ( ) : array { if ( ! $ this -> getCookieFile ( ) ) { return [ ] ; } unset ( $ this -> _curlHandle ) ; $ text = \ file_get_contents ( $ this -> getCookieFile ( ) ) ; $ cookies = [ ] ; foreach ( \ explode ( "\n" , $ text ) as $ line ) { $ parts = explode ( "\t" , $ line ) ; if ( 7 === \ count ( $ parts ) ) { $ cookies [ $ parts [ 5 ] ] = $ parts [ 6 ] ; } } return $ cookies ; }
Gets the current cookies.

@return array
Gets the current cookies .