Fakerino\Core\FakeHandler\ConfFakerClass::process PHP Метод

process() защищенный Метод

protected process ( $data )
    protected function process($data)
    {
        /**
         * When an element in the configuration is not present,
         * FakerinoConf returns an exception.
         * Because the Handler needs a null value to continue the chain handling,
         * the catch block will intercept that exception.
         */
        try {
            if (array_key_exists($data->getName(), $this->fakeElements)) {
                $firstChain = self::getFirstChain();
                if ($firstChain !== null) {
                    $classes = array();
                    foreach ($this->fakeElements[$data->getName()] as $key => $val) {
                        $element = new FakeElement($key, $val);
                        $classes[] = $firstChain->handle($element);
                    }
                    return $classes;
                }
            }
        } catch (ConfValueNotFoundException $e) {
        }
        return;
    }