protected function addToLog($state, $return = NULL)
    {
        $data['name'] = $state;

        if (NULL !== $return) {
            $data['return'] = $return;
        }
        $this->log[] = $data;
    }
protected function addToLog($state, $return = NULL)
    {
        $data['name'] = $state;

        if (NULL !== $return) {
            $data['return'] = $return;
        }
        $this->log[] = $data;
    }
protected function addToLog ( $ state , $ return = NULL ) { $ data [ 'name' ] = $ state ; if ( NULL !== $ return ) { $ data [ 'return' ] = $ return ; } $ this -> log [ ] = $ data ; }
The log will create.

@param      $state
@param null $return

@return mixed
The log will create .