src/Definition/FabricateDefinition.php
public function run($data, $world)
    {
        $result = [];
        if (is_callable($this->define)) {
            $callback = $this->define;
            $result = $callback($data, $world);
        } elseif (is_array($this->define)) {
            $result = $this->define;
        }
        return $result;
    }
public function run($data, $world)
    {
        $result = [];
        if (is_callable($this->define)) {
            $callback = $this->define;
            $result = $callback($data, $world);
        } elseif (is_array($this->define)) {
            $result = $this->define;
        }
        return $result;
    }
public function run ( $ data , $ world ) { $ result = [ ] ; if ( is_callable ( $ this -> define ) ) { $ callback = $ this -> define ; $ result = $ callback ( $ data , $ world ) ; } elseif ( is_array ( $ this -> define ) ) { $ result = $ this -> define ; } return $ result ; }
Run to apply this definition

@param array $data data
@param FabricateContext $world fabricate context
@return array applied data
Run to apply this definition