<?php
namespace Codazon\Shopbybrandpro\Model\Shopbybrandpro\Source;
class IsActive implements \Magento\Framework\Data\OptionSourceInterface
{
	protected $brand;
	public function __construct(\Codazon\Shopbybrandpro\Model\Brand $brand)
    {
        $this->brand = $brand;
    }
	public function toOptionArray()
	{
		$options[] = ['label' => '', 'value' => ''];
		$availableOptions = $this->brand->getAvailableStatuses();
		foreach ($availableOptions as $key => $value) {
			$options[] = [
				'label' => $value,
				'value' => $key,
			];
		}
		return $options;
	}
}