for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Oc\FieldNotes\Context;
class HandleFormContext
{
/**
* @var bool
*/
private $success;
* @var string[]
private $errors;
* @param bool $success
* @param array $errors
public function __construct($success, array $errors)
$this->success = $success;
$this->errors = $errors;
}
* @return bool
public function isSuccess()
return $this->success;
* List of translated error message to display in the frontend.
*
* @return string[]
public function getErrors()
return $this->errors;