N98\Magento\Command\Developer\Code\Model\MethodCommand::getGetterSetter PHP Method

getGetterSetter() protected method

protected getGetterSetter ( ) : array
return array
    protected function getGetterSetter()
    {
        $modelClassName = get_class($this->_mageModel);
        $getterSetter = array();
        foreach ($this->_tableColumns as $colName => $colProp) {
            $getterSetter[] = sprintf(' * @method %s get%s()', $this->getColumnType($colProp['Type']), $this->camelize($colName));
            $getterSetter[] = sprintf(' * @method %s set%s(%s $value)', $modelClassName, $this->camelize($colName), $this->getColumnType($colProp['Type']));
        }
        return $getterSetter;
    }