public function getArchivers($isAvailable = null)
    {
        if ($isAvailable === null) {
            return $this->archivers;
        }

        $filteredArchivers = [];

        /** @var \Thelia\Core\Archiver\ArchiverInterface $archiver */
        foreach ($this->archivers as $archiver) {
            if ($archiver->isAvailable() === (bool) $isAvailable) {
                $filteredArchivers[] = $archiver;
            }
        }

        return $filteredArchivers;
    }
public function getArchivers($isAvailable = null)
    {
        if ($isAvailable === null) {
            return $this->archivers;
        }

        $filteredArchivers = [];

        /** @var \Thelia\Core\Archiver\ArchiverInterface $archiver */
        foreach ($this->archivers as $archiver) {
            if ($archiver->isAvailable() === (bool) $isAvailable) {
                $filteredArchivers[] = $archiver;
            }
        }

        return $filteredArchivers;
    }
public function getArchivers ( $ isAvailable = null ) { if ( $ isAvailable === null ) { return $ this -> archivers ; } $ filteredArchivers = [ ] ; /** @var \Thelia\Core\Archiver\ArchiverInterface $archiver */ foreach ( $ this -> archivers as $ archiver ) { if ( $ archiver -> isAvailable ( ) === ( bool ) $ isAvailable ) { $ filteredArchivers [ ] = $ archiver ; } } return $ filteredArchivers ; }
Get all archivers or only those match availability

@param null|boolean $isAvailable Filter archivers by availability

@return array All, or filtered by availability, archivers
Get all archivers or only those match availability