for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SfCod\EmailEngineBundle\Example\Attachments;
use SfCod\EmailEngineBundle\Example\TestTemplateOptions;
use SfCod\EmailEngineBundle\Template\Attachments\AbstractAttachment;
/**
* Class TestAttachment
*
* @author Virchenko Maksim <[email protected]>
* @package SfCod\EmailEngineBundle\Example\Attachments
* @property TestTemplateOptions $options
*/
class TestImage extends AbstractAttachment
{
* Get attachment name
* @return string
public function getFileName(): string
return 'test_file.php';
}
* Get attachment path
public function getFileContent(): string
if (file_exists($this->options->filePath)) {
return file_get_contents($this->options->filePath);
return '';