for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Kris\LaravelFormBuilder\Events;
use Kris\LaravelFormBuilder\Fields\FormField;
use Kris\LaravelFormBuilder\Form;
class AfterFieldCreation
{
/**
* The form instance.
*
* @var Form
*/
protected $form;
* The field instance.
* @var FormField
protected $field;
* Create a new after field creation instance.
* @param Form $form
* @param FormField $field
* @return void
@return
Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.
Please refer to the PHP core documentation on constructors.
public function __construct(Form $form, FormField $field) {
$this->form = $form;
$this->field = $field;
}
* Return the event's form.
* @return Form
public function getForm() {
return $this->form;
* Return the event's field.
* @return FormField
public function getField() {
return $this->field;
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.