public function fake($elementName = null)
    {
        if ($elementName === null) {
            throw new MissingRequiredOptionException('element to fake');
        }
        $this->startElement = $elementName;
        $this->out = array();
        $this->outString = null;

        return $this;
    }
public function fake($elementName = null)
    {
        if ($elementName === null) {
            throw new MissingRequiredOptionException('element to fake');
        }
        $this->startElement = $elementName;
        $this->out = array();
        $this->outString = null;

        return $this;
    }
public function fake ( $ elementName = null ) { if ( $ elementName === null ) { throw new MissingRequiredOptionException ( 'element to fake' ) ; } $ this -> startElement = $ elementName ; $ this -> out = array ( ) ; $ this -> outString = null ; return $ this ; }
Setups the fake element and initializes the output.

@param string|array|null $elementName

@return FakeDataFactory $this
@throws \Fakerino\FakeData\Exception\MissingRequiredOptionException
Setups the fake element and initializes the output .