public function get($archiverId, $isAvailable = null)
    {
        $this->has($archiverId, true);

        if ($isAvailable === null) {
            return $this->archivers[$archiverId];
        }

        if ($this->archivers[$archiverId]->isAvailable() === (bool) $isAvailable) {
            return $this->archivers[$archiverId];
        }

        return null;
    }
public function get($archiverId, $isAvailable = null)
    {
        $this->has($archiverId, true);

        if ($isAvailable === null) {
            return $this->archivers[$archiverId];
        }

        if ($this->archivers[$archiverId]->isAvailable() === (bool) $isAvailable) {
            return $this->archivers[$archiverId];
        }

        return null;
    }
public function get ( $ archiverId , $ isAvailable = null ) { $ this -> has ( $ archiverId , true ) ; if ( $ isAvailable === null ) { return $ this -> archivers [ $ archiverId ] ; } if ( $ this -> archivers [ $ archiverId ] -> isAvailable ( ) === ( bool ) $ isAvailable ) { return $ this -> archivers [ $ archiverId ] ; } return null ; }
Get an archiver

@param string       $archiverId  An archiver identifier
@param null|boolean $isAvailable Filter archiver by availability

@return null|\Thelia\Core\Archiver\ArchiverInterface Return an archiver or null depends on availability
Get an archiver