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

56 lines
1.1 KiB
PHP
Raw Normal View History

2020-01-26 08:47:05 +00:00
<?php
namespace Webkul\Velocity;
use Webkul\Category\Repositories\CategoryRepository as Category;
class Velocity
{
/**
* Content Type List
*
* @var mixed
*/
protected $content_type = [
2020-02-04 13:34:53 +00:00
// 'link' => 'Link CMS Page',
// 'product' => 'Catalog Products',
// 'static' => 'Static Content',
'category' => 'Category Slug',
2020-01-26 08:47:05 +00:00
];
/**
* Catalog Product Type
*
* @var mixed
*/
protected $catalog_type = [
'new' => 'New Arrival',
'offer' => 'Offered Product [Special]',
'popular' => 'Popular Products',
'viewed' => 'Most Viewed',
'rated' => 'Most Rated',
'custom' => 'Custom Selection',
];
protected $category;
/**
* Create a new instance.
*
* @param Webkul\Category\Repositories\CategoryRepository $category
* @return void
*/
public function __construct(
Category $category
) {
$this->category = $category;
}
public function getContentType() {
return $this->content_type;
}
public function getCatalogType() {
return $this->catalog_type;
}
}