src/Models/Tile.php
/**
     * takes in position x and y, and saves it
     * @param array $data
     */
takes in position x and y, and saves it
@param array $data
takes in position x and y and saves it @param array $data
public function writeRawArray($data)
    {
        if (isset($data['x'])) {
            $this->Col = (int) $data['x'];
        }
        if (isset($data['y'])) {
            $this->Row = (int) $data['y'];
        }
        if (isset($data['w'])) {
            $this->Width = (int) $data['w'];
        }
        if (isset($data['h'])) {
            $this->Height = (int) $data['h'];
        }
        $this->write();
    }
public function writeRawArray ( $ data ) { if ( isset ( $ data [ 'x' ] ) ) { $ this -> Col = ( int ) $ data [ 'x' ] ; } if ( isset ( $ data [ 'y' ] ) ) { $ this -> Row = ( int ) $ data [ 'y' ] ; } if ( isset ( $ data [ 'w' ] ) ) { $ this -> Width = ( int ) $ data [ 'w' ] ; } if ( isset ( $ data [ 'h' ] ) ) { $ this -> Height = ( int ) $ data [ 'h' ] ; } $ this -> write ( ) ; }
takes in position x and y, and saves it
 @param array $data
takes in position x and y and saves it @param array $data