<?php

/**
 * Questo file è parte di Pongho.
 *
 * @author Daniele De Nobili
 * @package Application\Admin
 */

namespace Application\Admin\Form;

/**
 * Campo password.
 *
 * @deprecated
 */
class PasswordField extends TextField
{
    /**
     * {@inheritdoc}
     */
    protected function getFieldType()
    {
        return 'password';
    }

    /**
     * {@inheritdoc}
     */
    protected function getFieldValue()
    {
        return '';
    }

    /**
     * {@inheritdoc}
     */
    protected function generateCode(array $attributes)
    {
        $attributes['autocomplete'] = 'off';

        return parent::generateCode($attributes);
    }
}
