for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ByTIC\Assets\Assets\Asset\Traits;
/**
* Trait HasContentTrait
* @package ByTIC\Assets\Assets\Asset\Traits
*/
trait HasContentTrait
{
protected $content = null;
* @return null
public function getContent()
return $this->content;
}
* @return bool
public function hasContent(): bool
return $this->content !== null;
* @param string $content
public function setContent(string $content): void
$this->content = $content;
public function appendContent($content): void
if (empty($this->content)) {
return;
$this->content .= "\r\n".$content;
public function prependContent($content): void
$this->content = $content."\r\n".$this->content;