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

68 lines
1.4 KiB
PHP
Raw Normal View History

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