for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Arcanedev\SeoHelper\Entities;
use Arcanedev\SeoHelper\Bases\MetaCollection as BaseMetaCollection;
use Arcanedev\SeoHelper\Helpers\Meta;
/**
* Class MetaCollection
*
* @package Arcanedev\SeoHelper\Bases
* @author ARCANEDEV <[email protected]>
*/
class MetaCollection extends BaseMetaCollection
{
/* -----------------------------------------------------------------
| Properties
| -----------------------------------------------------------------
* Ignored tags, they have dedicated class.
* @var array
protected $ignored = [
'description',
'keywords'
];
| Main Methods
* Add a meta to collection.
* @param string $name
* @param string $content
* @return \Arcanedev\SeoHelper\Entities\MetaCollection
public function addOne($name, $content)
$meta = Meta::make($name, $content);
if ($meta->isValid() && ! $this->isIgnored($name)) {
$this->put($meta->key(), $meta);
}
return $this;