<?php

class Security{
    // declare data
    private $data;
     /**
     * __construct
     *
     *  set data
     * @param  $data  (unknown_type)  The Data That Will Be Secured
     * @return   (none)
     *
     */
    public function __construct($data)
    {
        $this->data = $data;
    }
    /**
     * clear
     *
     *  deleting spaces From The Beginning And The End From Data
     *  Removing php Codes
     *  Add \ Before " '
     * @param   (none)
     * @return   (unknown_type)The Data after Secured
     *
     */
    public function clear()
    {
       return $this->data = addslashes(strip_tags(trim($this->data)));
    }
}

