sarga/packages/Webkul/Velocity/src/Velocity.php

68 lines
1.4 KiB
PHP

<?php
namespace Webkul\Velocity;
use Webkul\Category\Repositories\CategoryRepository;
class Velocity
{
/**
* Content Type List
*
* @var array
*/
protected $content_type = [
// 'link' => 'Link CMS Page',
// 'product' => 'Catalog Products',
// 'static' => 'Static Content',
'category' => 'Category Slug',
];
/**
* Catalog Product Type
*
* @var array
*/
protected $catalog_type = [
'new' => 'New Arrival',
'offer' => 'Offered Product [Special]',
'popular' => 'Popular Products',
'viewed' => 'Most Viewed',
'rated' => 'Most Rated',
'custom' => 'Custom Selection',
];
/**
* CategoryRepository object
*
* @var \Webkul\Category\Repositories\CategoryRepository
*/
protected $categoryRepository;
/**
* Create a new instance.
*
* @param \Webkul\Category\Repositories\CategoryRepository $categoryRepository
* @return void
*/
public function __construct(CategoryRepository $categoryRepository)
{
$this->categoryRepository = $categoryRepository;
}
/**
* @return string
*/
public function getContentType()
{
return $this->content_type;
}
/**
* @return string
*/
public function getCatalogType()
{
return $this->catalog_type;
}
}